Skip to content
  • Jonathan Tan's avatar
    pack-bitmap: add free function · f3c23db2
    Jonathan Tan authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f3c23db2