Merge branch 'rs/plug-strbuf-leak-in-merge'

* rs/plug-strbuf-leak-in-merge:
  merge: release strbuf after use in suggest_conflicts()
maint
Junio C Hamano 2015-01-12 11:38:32 -08:00
commit d61e79050c
1 changed files with 1 additions and 0 deletions

View File

@ -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; "