diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-08-31 06:33:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:56 -0500 |
commit | 4ce057c3f41ce759ab5b197087c5b38b40a1f1d3 (patch) | |
tree | 05b95fac60e0bb3f72f8576154c82b0a4d710903 /source4/lib | |
parent | c51b106ce8b01cb8da4e790f73fb0875deee77d9 (diff) | |
download | samba-4ce057c3f41ce759ab5b197087c5b38b40a1f1d3.tar.gz samba-4ce057c3f41ce759ab5b197087c5b38b40a1f1d3.tar.bz2 samba-4ce057c3f41ce759ab5b197087c5b38b40a1f1d3.zip |
r17950: sync talloc with samba3
metze
(This used to be commit 5697841e2949d2f7a053b4766c48906943a5a04e)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/talloc/talloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |