aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5514-fetch-multiple.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-01 12:40:07 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-01 08:47:36 -0700
commite06c1d1640bc3e0b4da4d0e8119bf22f83c36634 (patch)
tree7bca53e09742fda0105b1ef515449df67414ff45 /t/t5514-fetch-multiple.sh
parentbuiltin/ls-remote: fix leaking `pattern` strings (diff)
downloadgit-e06c1d1640bc3e0b4da4d0e8119bf22f83c36634.tar.gz
git-e06c1d1640bc3e0b4da4d0e8119bf22f83c36634.zip
builtin/remote: fix leaking strings in `branch_list`
The `struct string_list branch_list` is declared as `NODUP`, which makes it not copy strings inserted into it. This causes memory leaks though, as this means it also won't be responsible for _freeing_ inserted strings. Thus, every branch we add to this will leak. Fix this by marking the list as `DUP` instead and free the local copy we have of the variable. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5514-fetch-multiple.sh')
0 files changed, 0 insertions, 0 deletions