diff options
| author | Jonathan Tan <jonathantanmy@google.com> | 2018-06-07 12:04:14 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-06-21 12:22:48 -0700 |
| commit | f3c23db2d7e764b247f7d76a8d0ba180811e9525 (patch) | |
| tree | da2cc54ff72aadae315b6a324678bbc9828c1763 /builtin/pack-objects.c | |
| parent | 3ae5fa0768f7f9781b40b1d40cb2f9f4c753bad4 (diff) | |
| download | git-f3c23db2d7e764b247f7d76a8d0ba180811e9525.tar.gz | |
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>
Diffstat (limited to 'builtin/pack-objects.c')
| -rw-r--r-- | builtin/pack-objects.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index d064f944b0..896e413007 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -2945,6 +2945,7 @@ static int get_object_list_from_bitmap(struct rev_info *revs) } traverse_bitmap_commit_list(bitmap_git, &add_object_entry_from_bitmap); + free_bitmap_index(bitmap_git); return 0; } |
