aboutsummaryrefslogtreecommitdiffstats
path: root/ref-filter.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-10-05 14:01:52 -0700
committerJunio C Hamano <gitster@pobox.com>2020-10-05 14:01:52 -0700
commit07601b5b360264a74f94d74640999ea19cf61517 (patch)
treed84a547e243e4fb75a8a0409667fcf5686928803 /ref-filter.c
parent34415c76c8f67c8692090ef4911d1626689e8f38 (diff)
parenta46d1f732192a8621ead7ea5c4a3ca391ad881cb (diff)
downloadgit-07601b5b360264a74f94d74640999ea19cf61517.tar.gz
Merge branch 'ma/worktree-cleanups'
Code clean-up. * ma/worktree-cleanups: worktree: use skip_prefix to parse target worktree: rename copy-pasted variable worktree: update renamed variable in comment worktree: inline `worktree_ref()` into its only caller wt-status: introduce wt_status_state_free_buffers() wt-status: print to s->fp, not stdout wt-status: replace sha1 mentions with oid
Diffstat (limited to 'ref-filter.c')
-rw-r--r--ref-filter.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ref-filter.c b/ref-filter.c
index e0b8cd3ed8..c62f6b4822 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -1557,9 +1557,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);
}