svn commit: samba r2719 - in branches/SAMBA_4_0: .
tridge at samba.org
tridge at samba.org
Tue Sep 28 11:57:40 GMT 2004
Author: tridge
Date: 2004-09-28 11:57:40 +0000 (Tue, 28 Sep 2004)
New Revision: 2719
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0&rev=2719&nolog=1
Log:
an additional note on talloc_unreference()
Modified:
branches/SAMBA_4_0/talloc_guide.txt
Changeset:
Modified: branches/SAMBA_4_0/talloc_guide.txt
===================================================================
--- branches/SAMBA_4_0/talloc_guide.txt 2004-09-28 11:54:17 UTC (rev 2718)
+++ branches/SAMBA_4_0/talloc_guide.txt 2004-09-28 11:57:40 UTC (rev 2719)
@@ -134,7 +134,12 @@
Note that if the reference has already been removed using
talloc_free() then this function will fail and will return NULL.
+Usually you can just use talloc_free() instead of
+talloc_unreference(), but sometimes it is useful to have the
+additional control on who becomes the parent of the pointer given by
+talloc_unreference().
+
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
void talloc_set_destructor(const void *ptr, int (*destructor)(void *));
More information about the samba-cvs
mailing list