From d18f03b50e17eb82abd76ebbfd23de7fa8571f11 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 15 Jul 2008 02:08:25 -0400 Subject: Add the size of the leak to the debug output --- dbus/dbus-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index 97a96f79..e72b1b38 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"); -- cgit v1.2.3