Merge branch 'rs/plug-leak-in-pack-bitmaps'
commita26d48a46e8d7df58e7a91e7aac6795e29ddbd6d
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 May 2015 20:24:44 +0000 (26 13:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 May 2015 20:24:44 +0000 (26 13:24 -0700)
tree9150be503c650caeb5f030255bd3e25137659162
parent22a1ae6ef2ba77a20113bbee6f706ec47e6440c5
parent599dc766e89fe4f964c197f8d109dfc2e3c890ba
Merge branch 'rs/plug-leak-in-pack-bitmaps'

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