talloc: when we enable NULL tracking, reparent the autofree context
commit6a9c89b3aef02310030ff436cd545eef77b8d1ee
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 21:52:00 +0000 (15 14:52 -0700)
tree8e5aac2acdcd60d57a912df06eb0d6788cf06b2a
parent451a537caa2207bb5e0a8818326a5f164c0d559a
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