Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix handle leak in sha1_file/unpack_objects if there were damaged object data
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 75a748a644f8f11c7bcb372fe74fbfb00faf1796..0106e2ce5ce7bc134d35466a2229dde982b60815 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-1749,6
+1749,7
@@
void *unpack_entry(struct packed_git *p, off_t obj_offset,
error("bad packed object CRC for %s",
sha1_to_hex(sha1));
mark_bad_packed_object(p, sha1);
+ unuse_pack(&w_curs);
return NULL;
}
}