summaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-12-11 00:36:31 -0800
committerJunio C Hamano <gitster@pobox.com>2008-12-11 00:36:31 -0800
commitde0db422782ddaf7754ac5b03fdc6dc5de1a9ae4 (patch)
tree643c6f8be7804462cc1e21f95cd33bd8dfb27f5f /builtin-pack-objects.c
parent07e62b733fad4236371a8cd6abc32409fb1fb87d (diff)
parent04d39759373e5de017e7c17ef4b762ac5ad3afcc (diff)
downloadgit-de0db422782ddaf7754ac5b03fdc6dc5de1a9ae4.tar.gz
Merge branch 'maint'
* maint: fsck: reduce stack footprint make sure packs to be replaced are closed beforehand
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 67eefa2932..cedef52fd3 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -535,6 +535,7 @@ static void write_pack_file(void)
snprintf(tmpname, sizeof(tmpname), "%s-%s.pack",
base_name, sha1_to_hex(sha1));
+ free_pack_by_name(tmpname);
if (adjust_perm(pack_tmp_name, mode))
die("unable to make temporary pack file readable: %s",
strerror(errno));