Merge branch 'rj/ref-filter-get-head-description-leakfix' into maint-2.38
Leakfix. * rj/ref-filter-get-head-description-leakfix: ref-filter.c: fix a leak in get_head_descriptionmaint
commit
feba8be3f0
|
@ -1722,6 +1722,8 @@ char *get_head_description(void)
|
||||||
} else
|
} else
|
||||||
strbuf_addstr(&desc, _("(no branch)"));
|
strbuf_addstr(&desc, _("(no branch)"));
|
||||||
|
|
||||||
|
wt_status_state_free_buffers(&state);
|
||||||
|
|
||||||
return strbuf_detach(&desc, NULL);
|
return strbuf_detach(&desc, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue