Merge branch 'sb/plug-wt-shortstatus-tracking-leak'
* sb/plug-wt-shortstatus-tracking-leak: wt-status.c: fix a memleak
This commit is contained in:
commit
011cb58bfb
@ -1550,6 +1550,7 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
|
|||||||
base = shorten_unambiguous_ref(base, 0);
|
base = shorten_unambiguous_ref(base, 0);
|
||||||
color_fprintf(s->fp, header_color, "...");
|
color_fprintf(s->fp, header_color, "...");
|
||||||
color_fprintf(s->fp, branch_color_remote, "%s", base);
|
color_fprintf(s->fp, branch_color_remote, "%s", base);
|
||||||
|
free((char *)base);
|
||||||
|
|
||||||
if (!upstream_is_gone && !num_ours && !num_theirs) {
|
if (!upstream_is_gone && !num_ours && !num_theirs) {
|
||||||
fputc(s->null_termination ? '\0' : '\n', s->fp);
|
fputc(s->null_termination ? '\0' : '\n', s->fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user