]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'rs/plug-leak-in-pack-bitmaps' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2015 19:00:22 +0000 (12:00 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2015 19:00:22 +0000 (12:00 -0700)
The code to read pack-bitmap wanted to allocate a few hundred
pointers to a structure, but by mistake allocated and leaked memory
enough to hold that many actual structures.  Correct the allocation
size and also have it on stack, as it is small enough.

* rs/plug-leak-in-pack-bitmaps:
  pack-bitmaps: plug memory leak, fix allocation size for recent_bitmaps

1  2 
pack-bitmap.c

diff --cc pack-bitmap.c
Simple merge