]> git.99rst.org Git - git.git/commit
pack-bitmap: plug leak in find_objects()
authorTaylor Blau <redacted>
Thu, 14 Dec 2023 22:23:45 +0000 (17:23 -0500)
committerJunio C Hamano <redacted>
Thu, 14 Dec 2023 22:38:07 +0000 (14:38 -0800)
commita96015a517060e5b69c6dd428f7276f1078ba507
tree65fe7631cef1d2c4b14ccd6d0d946685cbcff72d
parent6cdb67b97d188ea5583f33ac09f4649be5f9741f
pack-bitmap: plug leak in find_objects()

The `find_objects()` function creates an object_list for any tips of the
reachability query which do not have corresponding bitmaps.

The object_list is not used outside of `find_objects()`, but we never
free it with `object_list_free()`, resulting in a leak. Let's plug that
leak by calling `object_list_free()`, which results in t6113 becoming
leak-free.

Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
pack-bitmap.c
t/t6113-rev-list-bitmap-filters.sh
git clone https://git.99rst.org/PROJECT