1
0
mirror of https://github.com/git/git.git synced 2024-09-28 05:20:00 +02:00

Plug memory leak in index-pack collision checking codepath.

This commit is contained in:
Nicolas Pitre 2007-04-03 12:33:46 -04:00 committed by Junio C Hamano
parent a8f4ef727a
commit bbf4b41baf

View File

@ -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);
}
}