Skip to content

Commit 011cb58

Browse files
committed
Merge branch 'sb/plug-wt-shortstatus-tracking-leak'
* sb/plug-wt-shortstatus-tracking-leak: wt-status.c: fix a memleak
2 parents bf2cfca + 0e32d4b commit 011cb58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wt-status.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,7 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
15501550
base = shorten_unambiguous_ref(base, 0);
15511551
color_fprintf(s->fp, header_color, "...");
15521552
color_fprintf(s->fp, branch_color_remote, "%s", base);
1553+
free((char *)base);
15531554

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

0 commit comments

Comments
 (0)