Plug memory leak in index-pack collision checking codepath.
Nicolas Pitre committed
Apr 3, 2007 at 12:33 UTC
bbf4b41baff11d9fdc353c60527f258e84223121
1 file changed
+1
index-pack.c
+1
@@ -358,6 +358,7 @@ static void sha1_object(const void *data, unsigned long size,
358
if (size != has_size || type != has_type ||
359
memcmp(data, has_data, size) != 0)
360
die("SHA1 COLLISION FOUND WITH %s !", sha1_to_hex(sha1));
361
+ free(has_data);
362
}
363
}
364