aboutsummaryrefslogtreecommitdiffstats
path: root/pack-write.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-27 16:00:59 -0700
committerJunio C Hamano <gitster@pobox.com>2023-04-27 16:00:59 -0700
commit849c8b3dbf8e850020951e81a42df4dc0b1e5b5d (patch)
tree5b0187c4a8a834b0afb5674e5f623af7f8b2ca2c /pack-write.c
parent2807bd2c10606e590886543afe4e4f208dddd489 (diff)
parent9f7f10a282d8adeb9da0990aa0eb2adf93a47ca7 (diff)
downloadgit-849c8b3dbf8e850020951e81a42df4dc0b1e5b5d.tar.gz
Merge branch 'tb/pack-revindex-on-disk'
The on-disk reverse index that allows mapping from the pack offset to the object name for the object stored at the offset has been enabled by default. * tb/pack-revindex-on-disk: t: invert `GIT_TEST_WRITE_REV_INDEX` config: enable `pack.writeReverseIndex` by default pack-revindex: introduce `pack.readReverseIndex` pack-revindex: introduce GIT_TEST_REV_INDEX_DIE_ON_DISK pack-revindex: make `load_pack_revindex` take a repository t5325: mark as leak-free pack-write.c: plug a leak in stage_tmp_packfiles()
Diffstat (limited to 'pack-write.c')
-rw-r--r--pack-write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pack-write.c b/pack-write.c
index 9c37121be3..381555359c 100644
--- a/pack-write.c
+++ b/pack-write.c
@@ -570,6 +570,8 @@ void stage_tmp_packfiles(struct strbuf *name_buffer,
rename_tmp_packfile(name_buffer, rev_tmp_name, "rev");
if (mtimes_tmp_name)
rename_tmp_packfile(name_buffer, mtimes_tmp_name, "mtimes");
+
+ free((char *)rev_tmp_name);
}
void write_promisor_file(const char *promisor_name, struct ref **sought, int nr_sought)