Skip to content

Commit

Permalink
Merge branch 'sb/plug-wt-shortstatus-tracking-leak'
Browse files Browse the repository at this point in the history
* sb/plug-wt-shortstatus-tracking-leak:
  wt-status.c: fix a memleak
  • Loading branch information
Junio C Hamano committed Apr 14, 2015
2 parents bf2cfca + 0e32d4b commit 011cb58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,7 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
base = shorten_unambiguous_ref(base, 0);
color_fprintf(s->fp, header_color, "...");
color_fprintf(s->fp, branch_color_remote, "%s", base);
free((char *)base);

if (!upstream_is_gone && !num_ours && !num_theirs) {
fputc(s->null_termination ? '\0' : '\n', s->fp);
Expand Down

0 comments on commit 011cb58

Please sign in to comment.