diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-01 12:40:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-01 08:47:37 -0700 |
commit | cd6d7630fa51ad16afa010c6619870cab6c6faba (patch) | |
tree | f60e1a462b3758bd696609a2f0ffe4cf454be3b4 /t/helper/test-path-utils.c | |
parent | 06da42beec11e056f43425b2be623fefc0427670 (diff) |
builtin/worktree: fix leaking derived branch names
There are several heuristics that git-worktree(1) uses to derive the
name of the newly created branch when not given explicitly. These
heuristics all allocate a new string, but we only end up freeing that
string in a subset of cases.
Fix the remaining cases where we didn't yet free the derived branch
names. While at it, also free `opt_track`, which is being populated via
an `OPT_PASSTHRU()`.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-path-utils.c')
0 files changed, 0 insertions, 0 deletions