talloc: fixed talloc_disable_null_tracking()
authorAndrew Tridgell <tridge@samba.org>
Sun, 20 Sep 2009 20:14:40 +0000 (13:14 -0700)
committerAndrew Tridgell <tridge@samba.org>
Sun, 20 Sep 2009 20:14:40 +0000 (13:14 -0700)
commit3c5d7639624f6a82e75328e30dfd89e8ae728c55
tree7029dd1531ceb1864d0b45a8c243a284f10e118b
parent05653fce788d239433a93e68b71c1d280f02161a
talloc: fixed talloc_disable_null_tracking()

When we disable null tracking, we need to move any existing objects
that are under the null_context to be parented by the true NULL
context.

We also need a new talloc_enable_null_tracking_no_autofree() function,
as the talloc testsuite cannot cope with the moving of the autofree
context under the null_context as it wants to check exact counts of
objects under the null_context, and smbtorture has a large number of
objects in the autofree_context from .init functions
lib/talloc/talloc.c
lib/talloc/talloc.h
lib/talloc/testsuite.c