aboutsummaryrefslogtreecommitdiff
path: root/ref-filter.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-10 10:08:42 -0700
committerJunio C Hamano <gitster@pobox.com>2022-10-10 10:08:42 -0700
commit83b2b47850ab68c0bbdf387fe5fa9fd2a48837d8 (patch)
treefaad257297ccb17d3354f44d6972eff3edcb1dbd /ref-filter.c
parenta1fdfb09754cc477cd5134b064b0f0598ffb8713 (diff)
parentabcac2e19faaa0c64693533c9ee368dd4fd581f4 (diff)
downloadgit-83b2b47850ab68c0bbdf387fe5fa9fd2a48837d8.tar.xz
Merge branch 'rj/ref-filter-get-head-description-leakfix'
Leakfix. * rj/ref-filter-get-head-description-leakfix: ref-filter.c: fix a leak in get_head_description
Diffstat (limited to 'ref-filter.c')
-rw-r--r--ref-filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ref-filter.c b/ref-filter.c
index fd1cb14b0f..914908fac5 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -1722,6 +1722,8 @@ char *get_head_description(void)
} else
strbuf_addstr(&desc, _("(no branch)"));
+ wt_status_state_free_buffers(&state);
+
return strbuf_detach(&desc, NULL);
}