talloc: when we enable NULL tracking, reparent the autofree context
commit00fb6705ffc937617e11c6da33b39bad7dda2ac3
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 16:43:27 +0000 (15 09:43 -0700)
committerAndrew Tridgell <tridge@samba.org>
Wed, 16 Sep 2009 01:45:41 +0000 (15 18:45 -0700)
tree6c743ac2c897b517af88f841ad89f60151c7dfb5
parent089dc64cbb40fe270d44bed10cfb2ccfacff669a
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