Skip to content

Commit

Permalink
Plug memory leak in index-pack collision checking codepath.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Pitre authored and Junio C Hamano committed Apr 4, 2007
1 parent a8f4ef7 commit bbf4b41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit bbf4b41

Please sign in to comment.