summaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-05-04 00:18:04 +0200
committerJunio C Hamano <gitster@pobox.com>2013-05-04 00:18:04 +0200
commit7c2e8fc68469d374c8fd460a9342449642b4c8bc (patch)
tree8a141059e018d889d16daa1f0e295e8e04cb1e29 /sha1_file.c
parentSync with maint (diff)
parentunpack_entry: avoid freeing objects in base cache (diff)
downloadgit-7c2e8fc68469d374c8fd460a9342449642b4c8bc.tar.xz
git-7c2e8fc68469d374c8fd460a9342449642b4c8bc.zip
Merge branch 'tr/unpack-entry-use-after-free-fix'
* tr/unpack-entry-use-after-free-fix: unpack_entry: avoid freeing objects in base cache
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 64228a26d0..67e815b2db 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -2128,7 +2128,6 @@ void *unpack_entry(struct packed_git *p, off_t obj_offset,
error("failed to unpack compressed delta "
"at offset %"PRIuMAX" from %s",
(uintmax_t)curpos, p->pack_name);
- free(base);
data = NULL;
continue;
}