Make explicit free behave the same as implicit free
authorSam Liddicott <sam@liddicott.com>
Mon, 2 Feb 2009 12:12:07 +0000 (12:12 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 9 Jul 2009 08:35:39 +0000 (10:35 +0200)
commitfc095dbedddf28ce32c711873317cf0b22579bfb
tree7e1786ee78d4953f5d8126ffd863edb1c3039998
parent956b5a0003a3ab82d2d7cffb7aee6e5281b4fbb4
Make explicit free behave the same as implicit free

If a referenced allocation is explicitly freed the new owner
should be the same as if the same allocation is implicitly freed
(e.g. because it's owner was freed).

Previously in talloc an explicit free will remove the top non-child reference
but an implicit free will move the top (any) reference to be the new owner

Signed-off-by: Sam Liddicott <sam@liddicott.com>
lib/talloc/testsuite.c