Merge branch 'rs/plug-leak-in-pack-bitmaps' into next
commitb70f6470d4a42c2efce07be8bc1edac7c5743a77
authorJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2015 22:07:20 +0000 (20 15:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2015 22:07:20 +0000 (20 15:07 -0700)
treea65046562a171428ab2cb81d5c035a6912ae0767
parent730217488586a946942c6cd0e0c3903a7e7ae73d
parent599dc766e89fe4f964c197f8d109dfc2e3c890ba
Merge branch 'rs/plug-leak-in-pack-bitmaps' into next

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
pack-bitmap.c