diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/talloc.c | 9 |
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); +} + + /** @} */ |