summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-06-05 01:29:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:28 -0500
commite06d8e94a9eeb87c0c2ee8f22375c1ab6d18a3de (patch)
tree59b025874661fcb9492bc6b3e1e89414bf8a9920 /source4
parent1a993b800eca5dc8daccc715da46e7b84c604389 (diff)
downloadsamba-e06d8e94a9eeb87c0c2ee8f22375c1ab6d18a3de.tar.gz
samba-e06d8e94a9eeb87c0c2ee8f22375c1ab6d18a3de.tar.bz2
samba-e06d8e94a9eeb87c0c2ee8f22375c1ab6d18a3de.zip
r1017: - move to a centralised way of handling talloc/ldb interaction
(This used to be commit 363cb3377a0eca5bfef71a02dcdc21c5fadbaf32)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/talloc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/talloc.c b/source4/lib/talloc.c
index f3cdd75231..f61ef6d906 100644
--- a/source4/lib/talloc.c
+++ b/source4/lib/talloc.c
@@ -582,4 +582,13 @@ void *talloc_strdup_w(TALLOC_CTX *mem_ctx, void *s)
return talloc_memdup(mem_ctx, s, (len+1)*2);
}
+/*
+ a alloc function for ldb that uses talloc
+*/
+void *talloc_ldb_alloc(void *context, void *ptr, size_t size)
+{
+ return talloc_realloc((TALLOC_CTX *)context, ptr, size);
+}
+
+
/** @} */