diff options
| author | Taylor Blau <me@ttaylorr.com> | 2024-05-14 15:57:06 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-05-15 06:53:46 -0700 |
| commit | 85f360fee53933d230fd231db5306b26809fabcf (patch) | |
| tree | fa1e634ca5ca69ec0eddeb44b3d132ff6aeba37e /pack-bitmap.h | |
| parent | f25e1f2a4d48c6d8bfd659338d4415c7ef4df533 (diff) | |
| download | git-85f360fee53933d230fd231db5306b26809fabcf.tar.xz | |
pack-bitmap: introduce `bitmap_writer_free()`
Now that there is clearer memory ownership around the bitmap_writer
structure, introduce a bitmap_writer_free() function that callers may
use to free any memory associated with their instance of the
bitmap_writer structure.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.h')
| -rw-r--r-- | pack-bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-bitmap.h b/pack-bitmap.h index b2d13d40eb..3091095f33 100644 --- a/pack-bitmap.h +++ b/pack-bitmap.h @@ -139,6 +139,7 @@ void bitmap_writer_finish(struct bitmap_writer *writer, uint32_t index_nr, const char *filename, uint16_t options); +void bitmap_writer_free(struct bitmap_writer *writer); char *midx_bitmap_filename(struct multi_pack_index *midx); char *pack_bitmap_filename(struct packed_git *p); |
