]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r17923: turn on null_tracking with the first talloc_init() call,
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Aug 2006 17:17:02 +0000 (17:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:59 +0000 (11:38 -0500)
(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)

source3/lib/talloc.c

index 2fb8fb253014915316dc6033f159e6c48aa1a959..c25fbbfbbbd71365edf27b552bca9da9723c9184 100644 (file)
@@ -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;