]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Add the size of the leak to the debug output leak-locator
authorRay Strode <rstrode@redhat.com>
Tue, 15 Jul 2008 06:08:25 +0000 (02:08 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 15 Jul 2008 08:07:59 +0000 (04:07 -0400)
dbus/dbus-memory.c

index 97a96f790d990e269fdbea733d04461ab38b9f2d..e72b1b38a03db9a185a13c0229ae13db74d19630 100644 (file)
@@ -850,7 +850,7 @@ print_leaks (void)
         if (blocks[i] != NULL)
           {
               struct block *block;
-              fprintf (stderr, "found leak\n");
+              fprintf (stderr, "found %ld byte leak\n", block->size);
               block = blocks[i];
               backtrace_symbols_fd (block->symbols, block->number_of_symbols, 2);
               fprintf (stderr, "--\n");