diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-12-11 00:36:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-12-11 00:36:31 -0800 |
commit | de0db422782ddaf7754ac5b03fdc6dc5de1a9ae4 (patch) | |
tree | 643c6f8be7804462cc1e21f95cd33bd8dfb27f5f /builtin-pack-objects.c | |
parent | 07e62b733fad4236371a8cd6abc32409fb1fb87d (diff) | |
parent | 04d39759373e5de017e7c17ef4b762ac5ad3afcc (diff) | |
download | git-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.c | 1 |
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)); |