lib:talloc. Fix memory leak when destructors reparent children.
commitd4d14b15b6734e99f8527136ec007a97024ac348
authorSaji VR <saji.vr@nutanix.com>
Wed, 4 May 2016 22:14:55 +0000 (4 15:14 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 5 May 2016 06:33:53 +0000 (5 08:33 +0200)
treee4b80fa379cdc1372ab6ec6d03c6fcdbe8023c82
parent2fe2e662dba080536a0f6c5485514097dd74a65a
lib:talloc. Fix memory leak when destructors reparent children.

If a destructor reparents a child, we shouldn't exit the
loop freeing children as there may be others to process.

https://bugzilla.samba.org/show_bug.cgi?id=11901

Signed-off-by: Saji VR <saji.vr@nutanix.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May  5 08:33:53 CEST 2016 on sn-devel-144
lib/talloc/talloc.c