Skip to content

Commit

Permalink
Merge branch 'rs/plug-strbuf-leak-in-merge'
Browse files Browse the repository at this point in the history
* rs/plug-strbuf-leak-in-merge:
  merge: release strbuf after use in suggest_conflicts()
  • Loading branch information
Junio C Hamano committed Jan 12, 2015
2 parents 97488ab + 8d025b7 commit d61e790
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; "
Expand Down

0 comments on commit d61e790

Please sign in to comment.