From: Stefan Metzmacher Date: Tue, 29 Aug 2006 17:17:02 +0000 (+0000) Subject: r17923: turn on null_tracking with the first talloc_init() call, X-Git-Tag: samba-4.0.0alpha6~801^2~7780 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=164a7600512d85bb9871f71131927802bbbd879d;p=thirdparty%2Fsamba.git r17923: turn on null_tracking with the first talloc_init() call, (this needs to be moved to a samba3 specific place) I commit this because I habe no time to test smbcontrol .... pool-usage and don't want to break it. I'll try to find a better fix tomorrow. metze (This used to be commit ae313ab4caa5652199b9aaceb30b4d432ab4f393) --- diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 2fb8fb25301..c25fbbfbbbd 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -492,6 +492,9 @@ void *talloc_init(const char *fmt, ...) void *ptr; const char *name; + /* FIXME: move this into a samba3 specifiy file */ + talloc_enable_null_tracking(); + ptr = _talloc(NULL, 0); if (ptr == NULL) return NULL;