diff options
author | Nicolas Pitre <nico@cam.org> | 2007-04-03 18:33:46 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-04 04:04:56 +0200 |
commit | bbf4b41baff11d9fdc353c60527f258e84223121 (patch) | |
tree | eac8d7caea090c090bd8c588c04fb6ba8632a73b /index-pack.c | |
parent | Hopefully final update to the draft Release Notes, preparing for 1.5.1 (diff) | |
download | git-bbf4b41baff11d9fdc353c60527f258e84223121.tar.xz git-bbf4b41baff11d9fdc353c60527f258e84223121.zip |
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); } } |