summaryrefslogtreecommitdiffstats
path: root/talloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'talloc.c')
-rw-r--r--talloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/talloc.c b/talloc.c
index 63550cf4d4..87842c5acd 100644
--- a/talloc.c
+++ b/talloc.c
@@ -432,8 +432,9 @@ int talloc_increase_ref_count(const void *ptr)
this is referenced by a function pointer and should not be inline
*/
-static int talloc_reference_destructor(struct talloc_reference_handle *handle)
+static int talloc_reference_destructor(void *ptr)
{
+ struct talloc_reference_handle *handle = ptr;
struct talloc_chunk *ptr_tc = talloc_chunk_from_ptr(handle->ptr);
_TLIST_REMOVE(ptr_tc->refs, handle);
return 0;