From b9a779fa83029778bbd2bf059892d0226fc3a035 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 12:48:06 +0000 Subject: r2662: make --leak-check completely silent if not blocks are allocated (This used to be commit 00518201754dc2de583267071ebd2adecbadcb59) --- source4/lib/talloc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/lib/talloc.c') 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); } -- cgit