Free unused segment memory after acquisition
authorSoeren Apel <soeren@apelpie.net>
Wed, 8 Feb 2017 19:33:48 +0000 (20:33 +0100)
committerSoeren Apel <soeren@apelpie.net>
Wed, 8 Feb 2017 19:33:48 +0000 (20:33 +0100)
Segments allocate chunks of MaxChunkSize bytes each.
Most likely, the last allocated chunk isn't fully used,
so there's memory going to waste. This patch fixes this
by allocating a chunk of the required size that replaces
the last standard chunk.


No differences found