Skip to content

Commit feba8be

Browse files
committed
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_description
2 parents ded944f + abcac2e commit feba8be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ref-filter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,6 +1722,8 @@ char *get_head_description(void)
17221722
} else
17231723
strbuf_addstr(&desc, _("(no branch)"));
17241724

1725+
wt_status_state_free_buffers(&state);
1726+
17251727
return strbuf_detach(&desc, NULL);
17261728
}
17271729

0 commit comments

Comments
 (0)