Merge branch 'sb/t1020-cleanup' into maint
[gitweb.git] / wt-status.c
index 853419f05f232045cf4ad3f8a8a2af04be9329a0..38cb165f124d610c789a8d82de42281c795111f7 100644 (file)
@@ -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);