X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=index-pack.c;h=3c768fbc631387b59bbbae3423b65b6a311a702b;hb=a6e3768f641c2703266422aa05c05f1d01e886b2;hp=6284fe3760465cceccfa7fb1580a8652761f35b6;hpb=3a81b9f571a6b7edd83b3d5f27c3c95d9b1c9d5c;p=git.git diff --git a/index-pack.c b/index-pack.c index 6284fe376..3c768fbc6 100644 --- 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); } }