mirror of
https://github.com/git/git
synced 2024-10-12 11:32:34 +00:00
Merge branch 'mm/log-branch-desc-plug-leak'
* mm/log-branch-desc-plug-leak: builtin/log.c: fix minor memory leak
This commit is contained in:
commit
1bada2b0cc
|
@ -864,6 +864,7 @@ static void add_branch_description(struct strbuf *buf, const char *branch_name)
|
||||||
strbuf_addbuf(buf, &desc);
|
strbuf_addbuf(buf, &desc);
|
||||||
strbuf_addch(buf, '\n');
|
strbuf_addch(buf, '\n');
|
||||||
}
|
}
|
||||||
|
strbuf_release(&desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *find_branch_name(struct rev_info *rev)
|
static char *find_branch_name(struct rev_info *rev)
|
||||||
|
|
Loading…
Reference in a new issue