]> granicus.if.org Git - neomutt/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)
committerRichard Russon <rich@flatcap.org>
Mon, 26 Nov 2018 18:27:21 +0000 (18:27 +0000)
So I can easily see the resulting size of the pool at the end of a
run.

mutt/buffer.c

index 20cb0a94344adafb9b05c6ebea4c2abb59b6c267..230d6161f4f02f813ed3c1995ab5797e8d97bb78 100644 (file)
@@ -347,10 +347,9 @@ void mutt_buffer_pool_init(void)
  */
 void mutt_buffer_pool_free(void)
 {
-  if (BufferPoolCount != BufferPoolLen)
-  {
-    mutt_debug(1, "Buffer pool leak: %zu/%zu\n", BufferPoolCount, BufferPoolLen);
-  }
+  mutt_debug(1, "mutt_buffer_pool_free: %zu of %zu returned to pool\n",
+             BufferPoolCount, BufferPoolLen);
+
   while (BufferPoolCount)
     mutt_buffer_free(&BufferPool[--BufferPoolCount]);
   FREE(&BufferPool);