talloc: preserve context name on talloc_free_children()
authorSimo Sorce <idra@samba.org>
Wed, 27 Jul 2011 16:02:35 +0000 (12:02 -0400)
committerKarolin Seeger <kseeger@samba.org>
Fri, 16 Sep 2011 18:41:26 +0000 (20:41 +0200)
commit84a9b0e3dfbf7f088c7b236b045e8957fbebde76
tree92808fe3fecd88a9cf2a6885a72b7cb8b04ad4dc
parent5d28670d574368e87dd5f9c309134b7d62055d0e
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)
(cherry picked from commit 99495ea4d28de530fedc11c94d36bc304cf9ae4a)
lib/talloc/talloc.c