author | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Jul 2008 22:24:07 +0000 (15:24 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Jul 2008 22:24:07 +0000 (15:24 -0700) |
* sp/maint-pack-memuse:
Correct pack memory leak causing git gc to try to exceed ulimit
Correct pack memory leak causing git gc to try to exceed ulimit
sha1_file.c | patch | blob | history |
diff --git a/sha1_file.c b/sha1_file.c
index d1c406081e29eab9843a5268b611af1a3e014227..10346b681e3575d17945f64513e2b0fecbcc01fc 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
off_t base_offset;
base_offset = get_delta_base(p, w_curs, &curpos, *type, obj_offset);
+ unuse_pack(w_curs);
base = cache_or_unpack_entry(p, base_offset, &base_size, type, 0);
if (!base)
die("failed to read delta base object"