talloc: preserve context name on talloc_free_children()
commit99495ea4d28de530fedc11c94d36bc304cf9ae4a
authorSimo Sorce <idra@samba.org>
Wed, 27 Jul 2011 16:02:35 +0000 (27 12:02 -0400)
committerKarolin Seeger <kseeger@samba.org>
Sat, 20 Aug 2011 18:56:37 +0000 (20 20:56 +0200)
treed8a4718e8e8af637b19fdd12b15a48336dacd27e
parent07554082cc9d286ca0628179c9e7f7a493016a57
talloc: preserve context name on talloc_free_children()

Otherwise tc->name will end up pointing to garbage when it is not
set to a const but rather to a string allocate as child of the context itself.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 52182a528117c4dd9624f64b34a873c0903ad70a)
lib/talloc/talloc.c