summaryrefslogtreecommitdiffstats
path: root/t/t5323-pack-redundant.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-30 11:13:32 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-30 20:23:04 +0200
commita0f2a2f5813596053cf785302b2bbfa76cbd9783 (patch)
treefc49e151c1ff81af5be62b13838f611a8148a6b1 /t/t5323-pack-redundant.sh
parentbuiltin/stash: fix leaking `pathspec_from_file` (diff)
downloadgit-a0f2a2f5813596053cf785302b2bbfa76cbd9783.tar.xz
git-a0f2a2f5813596053cf785302b2bbfa76cbd9783.zip
builtin/pack-redundant: fix various memory leaks
There are various different memory leaks in git-pack-redundant(1), mostly caused by not even trying to free allocated memory. Fix them. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-xt/t5323-pack-redundant.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5323-pack-redundant.sh b/t/t5323-pack-redundant.sh
index 8dbbcc5e51..4e18f5490a 100755
--- a/t/t5323-pack-redundant.sh
+++ b/t/t5323-pack-redundant.sh
@@ -34,6 +34,7 @@ relationship between packs and objects is as follows:
Px2 | s s s x x x
'
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
main_repo=main.git