summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 12:48:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:19 -0500
commitb9a779fa83029778bbd2bf059892d0226fc3a035 (patch)
treec30638d4afbfd3b12da99c507a835e4311fe1326
parent9010d3859eca98d6a28ccf4f461b66a5778be4d5 (diff)
downloadsamba-b9a779fa83029778bbd2bf059892d0226fc3a035.tar.gz
samba-b9a779fa83029778bbd2bf059892d0226fc3a035.tar.bz2
samba-b9a779fa83029778bbd2bf059892d0226fc3a035.zip
r2662: make --leak-check completely silent if not blocks are allocated
(This used to be commit 00518201754dc2de583267071ebd2adecbadcb59)
-rw-r--r--source4/lib/talloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/talloc.c b/source4/lib/talloc.c
index 1d781e4101..8193f9c384 100644
--- a/source4/lib/talloc.c
+++ b/source4/lib/talloc.c
@@ -427,6 +427,9 @@ void talloc_report(void *ptr, FILE *f)
*/
static void talloc_report_all(void)
{
+ if (talloc_total_size(null_context) == 0) {
+ return;
+ }
talloc_report(null_context, stderr);
}