summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6fc4a7e)
raw | patch | inline | side by side (parent: 6fc4a7e)
author | Alex Riesen <raa.lkml@gmail.com> | |
Wed, 19 Nov 2008 11:14:05 +0000 (12:14 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 Nov 2008 03:31:05 +0000 (19:31 -0800) |
In the case of bad packed object CRC, unuse_pack wasn't called after
check_pack_crc which calls use_pack.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
check_pack_crc which calls use_pack.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c | patch | blob | history |
diff --git a/sha1_file.c b/sha1_file.c
index 75a748a644f8f11c7bcb372fe74fbfb00faf1796..0106e2ce5ce7bc134d35466a2229dde982b60815 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
error("bad packed object CRC for %s",
sha1_to_hex(sha1));
mark_bad_packed_object(p, sha1);
+ unuse_pack(&w_curs);
return NULL;
}
}