From 4ce057c3f41ce759ab5b197087c5b38b40a1f1d3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 31 Aug 2006 06:33:54 +0000 Subject: r17950: sync talloc with samba3 metze (This used to be commit 5697841e2949d2f7a053b4766c48906943a5a04e) --- source4/lib/talloc/talloc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/lib/talloc') diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c index 2fb8fb2530..b7284e9317 100644 --- a/source4/lib/talloc/talloc.c +++ b/source4/lib/talloc/talloc.c @@ -492,6 +492,13 @@ void *talloc_init(const char *fmt, ...) void *ptr; const char *name; + /* + * samba3 expects talloc_report_depth_cb(NULL, ...) + * reports all talloc'ed memory, so we need to enable + * null_tracking + */ + talloc_enable_null_tracking(); + ptr = _talloc(NULL, 0); if (ptr == NULL) return NULL; -- cgit