From: Nicolas Pitre Date: Tue, 3 Apr 2007 16:33:46 +0000 (-0400) Subject: Plug memory leak in index-pack collision checking codepath. X-Git-Tag: v1.5.1~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bbf4b41baff11d9fdc353c60527f258e84223121;p=git.git Plug memory leak in index-pack collision checking codepath. --- 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); } }