From bbf4b41baff11d9fdc353c60527f258e84223121 Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Tue, 3 Apr 2007 12:33:46 -0400 Subject: [PATCH] Plug memory leak in index-pack collision checking codepath. --- index-pack.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.26.2