diff options
Diffstat (limited to 'ref-filter.c')
-rw-r--r-- | ref-filter.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ref-filter.c b/ref-filter.c index 8ba0e31915..ea00ca38c8 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -1509,9 +1509,7 @@ char *get_head_description(void) strbuf_addstr(&desc, _("no branch")); strbuf_addch(&desc, ')'); - free(state.branch); - free(state.onto); - free(state.detached_from); + wt_status_state_free_buffers(&state); return strbuf_detach(&desc, NULL); } |