diff options
author | Nicolas Pitre <nico@cam.org> | 2007-04-03 12:33:46 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-03 19:04:56 -0700 |
commit | bbf4b41baff11d9fdc353c60527f258e84223121 (patch) | |
tree | eac8d7caea090c090bd8c588c04fb6ba8632a73b /index-pack.c | |
parent | a8f4ef727a7e626f23878e7e3f9f19f0a1052df0 (diff) | |
download | git-bbf4b41baff11d9fdc353c60527f258e84223121.tar.gz |
Plug memory leak in index-pack collision checking codepath.
Diffstat (limited to 'index-pack.c')
-rw-r--r-- | index-pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/index-pack.c b/index-pack.c index 6284fe3760..3c768fbc63 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); } } |