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)
commit1a5978445199a1d8697a5604761899aa065059fe
tree7d6dd6ac85243bc6b20d8bed7455f1d02a54cbf6
parentd21cb7e2d29a8c496bb139b5f8086949305e76a2
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.
(This used to be commit 200756017e1867faa207703eddc00a75ae4527df)
source4/lib/talloc/talloc.3.xml
source4/lib/talloc/talloc.c
source4/lib/talloc/talloc.h
source4/lib/talloc/testsuite.c