commit | bbf4b41baff11d9fdc353c60527f258e84223121 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <nico@cam.org> | Tue Apr 03 12:33:46 2007 -0400 |
committer | Junio C Hamano <junkio@cox.net> | Tue Apr 03 19:04:56 2007 -0700 |
tree | eac8d7caea090c090bd8c588c04fb6ba8632a73b | |
parent | a8f4ef727a7e626f23878e7e3f9f19f0a1052df0 [diff] [blame] |
Plug memory leak in index-pack collision checking codepath.
diff --git a/index-pack.c b/index-pack.c index 6284fe3..3c768fb 100644 --- a/index-pack.c +++ b/index-pack.c
@@ -358,6 +358,7 @@ 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); } }