]> git.ipfire.org Git - thirdparty/git.git/commit - pack-bitmap.c
pack-bitmap: fix leak of haves/wants object lists
authorJeff King <peff@peff.net>
Thu, 13 Feb 2020 02:16:33 +0000 (21:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Feb 2020 17:08:58 +0000 (09:08 -0800)
commitacac50dd8c2c9725841b3e9143d78c6345dc076c
treeafa32ba98f25de1dff2bd6cae0ea4f3cda6b8fc9
parent551cf8b655fa73c90dabea633d41b5f10deffaf2
pack-bitmap: fix leak of haves/wants object lists

When we do a bitmap-aware revision traversal, we create an object_list
for each of the "haves" and "wants" tips. After creating the result
bitmaps these are no longer needed or used, but we never free the list
memory.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object.c
object.h
pack-bitmap.c