Browse Source

Plug memory leak in index-pack collision checking codepath.

maint
Nicolas Pitre 18 years ago committed by Junio C Hamano
parent
commit
bbf4b41baf
  1. 1
      index-pack.c

1
index-pack.c

@ -358,6 +358,7 @@ static void sha1_object(const void *data, unsigned long size, @@ -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);
}
}


Loading…
Cancel
Save