r18435: added a function talloc_move() which is like talloc_steal(), but is
authorAndrew Tridgell <tridge@samba.org>
Wed, 13 Sep 2006 00:05:07 +0000 (00:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:29 +0000 (14:18 -0500)
commit200756017e1867faa207703eddc00a75ae4527df
tree0d42197e483e310d306947f4c51ac8b88c5e5b3c
parent4f235b88aa0ce6c684bf203ea3cbc81e91a3cd3e
r18435: added a function talloc_move() which is like talloc_steal(), but is
meant for moving pointers between structures. The difference is that
talloc_move() will zero the source pointer, thus ensuring you don't
reference the pointer in the old context.

talloc_move() is appropriate in some, but not all cases where we use
talloc_steal() now. The interface came out of a discussion with
Jeremy.
source/lib/talloc/talloc.3.xml
source/lib/talloc/talloc.c
source/lib/talloc/talloc.h
source/lib/talloc/testsuite.c