diff options
author | Patrick Steinhardt <ps@pks.im> | 2023-11-06 13:45:57 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-07 02:51:41 +0300 |
commit | 568cc818cc26955eb0b94084d3068caabab1edd7 (patch) | |
tree | 31bb0211188367332ee7afbd273779b25d72cf20 /t/t5311-pack-bitmaps-shallow.sh | |
parent | 40e9136ff641682e2ef739a3dbce03047ed5426f (diff) |
shallow: fix memory leak when registering shallow roots
When registering shallow roots, we unset the list of parents of the
to-be-registered commit if it's already been parsed. This causes us to
leak memory though because we never free this list. Fix this.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5311-pack-bitmaps-shallow.sh')
-rwxr-xr-x | t/t5311-pack-bitmaps-shallow.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t5311-pack-bitmaps-shallow.sh b/t/t5311-pack-bitmaps-shallow.sh index 9dae60f73e..4fe71fe8cd 100755 --- a/t/t5311-pack-bitmaps-shallow.sh +++ b/t/t5311-pack-bitmaps-shallow.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='check bitmap operation with shallow repositories' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # We want to create a situation where the shallow, grafted |