Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
branch: fix segfault when resolving an invalid HEAD
[gitweb.git]
/
index-pack.c
diff --git
a/index-pack.c
b/index-pack.c
index 6284fe3760465cceccfa7fb1580a8652761f35b6..3c768fbc631387b59bbbae3423b65b6a311a702b 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-358,6
+358,7
@@
static void sha1_object(const void *data, unsigned long size,
if (size != has_size || type != has_type ||
memcmp(data, has_data, size) != 0)
die("SHA1 COLLISION FOUND WITH %s !", sha1_to_hex(sha1));
+ free(has_data);
}
}