talloc testsuite: test (ref, free, steal) destroys reference
authorSam Liddicott <sam@liddicott.com>
Mon, 2 Feb 2009 12:12:08 +0000 (12:12 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 9 Jul 2009 08:36:00 +0000 (10:36 +0200)
commit1672a0cc1e2751d6665854fd59baeb6661138534
tree989d9783731b344319358037b6b45aa63a082cce
parent04183e2b4462102aedf3231e5cc236a374c38e87
talloc testsuite: test (ref, free, steal) destroys reference

ref, free, steal destroys the reference (as it became the new owner
on free) and stops the reference from keeping the object alive.

references should only be removed by permission of the reference owner.

Current behaviour may be according to design, but it's very awkward.

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