talloc: when we enable NULL tracking, reparent the autofree context
commit2e7841ff51107b0ccb65f19ea4c53d5a42cefb45
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 18:48:12 +0000 (15 11:48 -0700)
tree683475a59fd0ab39d0b2f371c127fcf2626fa045
parentf0104bee8e95c87cae9089046a70144b63805f9f
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