talloc: when we enable NULL tracking, reparent the autofree context
commit209c278f1fdb315ebf6c83e164e518cc6737480e
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 16:43:27 +0000 (15 09:43 -0700)
committerAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 16:43:27 +0000 (15 09:43 -0700)
tree76e5001442e2b3090718fdb03cc66c571d3a4628
parent865e65a163145b0aee724210744955af96d618b8
talloc: when we enable NULL tracking, reparent the autofree context

If NULL tracking is enabled after the autofree context is initialised
then autofree ends up separate from the null_context. This means that
talloc_report_full() doesn't report the autofree context. Fix this by
reparenting the autofree context when we create the null_context.
lib/talloc/talloc.c