]> sigrok.org Git - pulseview.git/commitdiff
Free unused segment memory after acquisition
authorSoeren Apel <redacted>
Wed, 8 Feb 2017 19:33:48 +0000 (20:33 +0100)
committerSoeren Apel <redacted>
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