summaryrefslogtreecommitdiff
path: root/talloc_guide.txt
diff options
context:
space:
mode:
Diffstat (limited to 'talloc_guide.txt')
-rw-r--r--talloc_guide.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/talloc_guide.txt b/talloc_guide.txt
index ed3f7713aa..6920ea16f1 100644
--- a/talloc_guide.txt
+++ b/talloc_guide.txt
@@ -125,6 +125,17 @@ ways:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+void *talloc_unreference(const void *context, const void *ptr);
+
+The talloc_unreference() function removes a reference added by
+talloc_reference(). It must be called with exactly the same arguments
+as talloc_reference().
+
+Note that if the reference has already been removed using
+talloc_free() then this function will fail and will return NULL.
+
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
void talloc_set_destructor(const void *ptr, int (*destructor)(void *));
The function talloc_set_destructor() sets the "destructor" for the