prevent git ref/unref mismatches. prevent reference promotion to owner
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:55 +0000 (10:35 +0200)
commit04183e2b4462102aedf3231e5cc236a374c38e87
treecde4a2593566be487ca82817f88c58bdd4a40817
parent1901ff9942837e9cad22269b16b33a6af3df92a9
prevent git ref/unref mismatches. prevent reference promotion to owner

If talloc_steal occurs on an allocation that had references but whose
owner died before the steal, then one less unref must be done.

This is very weird.

These fixes seperate ownership and referencing internally to talloc

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