]> granicus.if.org Git - mutt/commitdiff
Always print mutt_buffer_pool_free() size debug output.
authorKevin McCarthy <kevin@8t8.us>
Wed, 31 Oct 2018 19:19:56 +0000 (12:19 -0700)
committerKevin McCarthy <kevin@8t8.us>
Wed, 31 Oct 2018 19:19:56 +0000 (12:19 -0700)
So I can easily see the resulting size of the pool at the end of a
run.

buffer.c

index d08e061947638c7ff7b018748955e0008c9e0b7b..3142d00c05d0a598348c9bebd09fb35a98a66351 100644 (file)
--- 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);