Commit e6059484 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

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
parent 5de55f85
Pipeline #35009866 passed with stages
in 15 minutes and 29 seconds
...@@ -220,11 +220,10 @@ void mutt_buffer_pool_init (void) ...@@ -220,11 +220,10 @@ void mutt_buffer_pool_init (void)
void mutt_buffer_pool_free (void) void mutt_buffer_pool_free (void)
{ {
if (BufferPoolCount != BufferPoolLen) dprint (1, (debugfile,
{ "mutt_buffer_pool_free: %zu of %zu returned to pool\n",
dprint (1, (debugfile, "Buffer pool leak: %zu/%zu\n",
BufferPoolCount, BufferPoolLen)); BufferPoolCount, BufferPoolLen));
while (BufferPoolCount) while (BufferPoolCount)
mutt_buffer_free (&BufferPool[--BufferPoolCount]); mutt_buffer_free (&BufferPool[--BufferPoolCount]);
FREE (&BufferPool); FREE (&BufferPool);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment