pack-bitmap: plug leak in find_objects()
commita96015a517060e5b69c6dd428f7276f1078ba507
authorTaylor Blau <me@ttaylorr.com>
Thu, 14 Dec 2023 22:23:45 +0000 (14 17:23 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Dec 2023 22:38:07 +0000 (14 14:38 -0800)
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 <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap.c
t/t6113-rev-list-bitmap-filters.sh