r15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()
authorAndrew Tridgell <tridge@samba.org>
Wed, 24 May 2006 07:31:02 +0000 (07:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:32 +0000 (14:08 -0500)
commita665cccd2ef81e704e90bb228bbd14c0afb031af
tree20ff8949a797c3435e586c12148f1a8aed9c731c
parent574daba7951b64b6b877db55a92e5a66f3354b4f
r15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()
type safe. This only works on recent gcc versions. With other
compilers it reverts to a non-typesafe cast

The patch also ensures that talloc_free() does not change error on
systems where free() can change errno
(This used to be commit babbff5f777642f559747f6d0697bc7c3a5e798d)
source4/lib/talloc/talloc.c
source4/lib/talloc/talloc.h
source4/lib/talloc/testsuite.c