]> git.ipfire.org Git - thirdparty/git.git/commit - pack-bitmap-write.c
pack-bitmap: add free function
authorJonathan Tan <jonathantanmy@google.com>
Thu, 7 Jun 2018 19:04:14 +0000 (12:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Jun 2018 19:22:48 +0000 (12:22 -0700)
commitf3c23db2d7e764b247f7d76a8d0ba180811e9525
treeda2cc54ff72aadae315b6a324678bbc9828c1763
parent3ae5fa0768f7f9781b40b1d40cb2f9f4c753bad4
pack-bitmap: add free function

Add a function to free struct bitmap_index instances, and use it where
needed (except when rebuild_existing_bitmaps() is used, since it creates
references to the bitmaps within the struct bitmap_index passed to it).

Note that the hashes field in struct bitmap_index is not freed because
it points to another field within the same struct. The documentation for
that field has been updated to clarify that.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
builtin/rev-list.c
pack-bitmap-write.c
pack-bitmap.c
pack-bitmap.h