Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-04-03 20:33:46 +0400
committerJunio C Hamano <junkio@cox.net>2007-04-04 06:04:56 +0400
commitbbf4b41baff11d9fdc353c60527f258e84223121 (patch)
treeeac8d7caea090c090bd8c588c04fb6ba8632a73b /index-pack.c
parenta8f4ef727a7e626f23878e7e3f9f19f0a1052df0 (diff)
Plug memory leak in index-pack collision checking codepath.
Diffstat (limited to 'index-pack.c')
-rw-r--r--index-pack.c1
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);
}
}