pytalloc: use talloc_unlink() to free py_talloc objects
authorKamen Mazdrashki <kamenim@samba.org>
Fri, 8 Oct 2010 01:21:07 +0000 (04:21 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Wed, 20 Oct 2010 21:37:06 +0000 (21:37 +0000)
commitc0b9526aaf29442f85f62232e22aecfb484b1576
tree96e7757c0507440923549f9ea47a027fec8f67c9
parentfeb60345816f0fd45ea9b381fbd374b21542f518
pytalloc: use talloc_unlink() to free py_talloc objects

Those type of objects are referenced every time we assign
them to other py_talloc objects, which leads to runtime
warnings that we are trying to free an object with references

Wrap talloc_unlink() in SMB_ASSERT() to ensure we catch possible failure

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Oct 20 21:37:06 UTC 2010 on sn-devel-104
lib/talloc/pytalloc.c