From: Kevin McCarthy Date: Wed, 31 Oct 2018 19:19:56 +0000 (-0700) Subject: Always print mutt_buffer_pool_free() size debug output. X-Git-Tag: mutt-1-11-rel~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e60594844c469e199757b6dd2688a3047b440b2c;p=mutt Always print mutt_buffer_pool_free() size debug output. So I can easily see the resulting size of the pool at the end of a run. --- diff --git a/buffer.c b/buffer.c index d08e0619..3142d00c 100644 --- a/buffer.c +++ b/buffer.c @@ -220,11 +220,10 @@ void mutt_buffer_pool_init (void) void mutt_buffer_pool_free (void) { - if (BufferPoolCount != BufferPoolLen) - { - dprint (1, (debugfile, "Buffer pool leak: %zu/%zu\n", - BufferPoolCount, BufferPoolLen)); - } + dprint (1, (debugfile, + "mutt_buffer_pool_free: %zu of %zu returned to pool\n", + BufferPoolCount, BufferPoolLen)); + while (BufferPoolCount) mutt_buffer_free (&BufferPool[--BufferPoolCount]); FREE (&BufferPool);