From: Ray Strode Date: Tue, 15 Jul 2008 06:08:25 +0000 (-0400) Subject: Add the size of the leak to the debug output X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fleak-locator;p=thirdparty%2Fdbus.git Add the size of the leak to the debug output --- diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index 97a96f790..e72b1b38a 100644 --- a/dbus/dbus-memory.c +++ b/dbus/dbus-memory.c @@ -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");