Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add test-sha1 to .gitignore.
[gitweb.git]
/
object.c
diff --git
a/object.c
b/object.c
index 37d1363359eb54070ed4dc52b9e96d4ad9457db3..cfc4969ed9ba0ccfdba8f97637bac20be31d1eba 100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-176,6
+176,7
@@
struct object *parse_object(const unsigned char *sha1)
if (buffer) {
struct object *obj;
if (check_sha1_signature(sha1, buffer, size, typename(type)) < 0) {
+ free(buffer);
error("sha1 mismatch %s\n", sha1_to_hex(sha1));
return NULL;
}