diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-12 11:38:32 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-12 11:38:37 -0800 |
commit | d61e79050cd30231456740c3006aca94ed074db0 (patch) | |
tree | c75683876cce895159851f64f11ceca4d2fc7a26 /builtin/merge.c | |
parent | 97488abc91217d3ddb0f8fa4b14a51c2cfbde65d (diff) | |
parent | 8d025b7cafdd976d1ba34fd8b2df8b669e1cd282 (diff) | |
download | git-d61e79050cd30231456740c3006aca94ed074db0.tar.gz |
Merge branch 'rs/plug-strbuf-leak-in-merge'
* rs/plug-strbuf-leak-in-merge:
merge: release strbuf after use in suggest_conflicts()
Diffstat (limited to 'builtin/merge.c')
-rw-r--r-- | builtin/merge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/merge.c b/builtin/merge.c index 9effed7ff1..c638fd5a9a 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -894,6 +894,7 @@ static int suggest_conflicts(void) append_conflicts_hint(&msgbuf); fputs(msgbuf.buf, fp); + strbuf_release(&msgbuf); fclose(fp); rerere(allow_rerere_auto); printf(_("Automatic merge failed; " |