So I can easily see the resulting size of the pool at the end of a
run.
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);