summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-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);
}