diff options
Diffstat (limited to 'source4/lib/ldb/tools/ldbdel.c')
-rw-r--r-- | source4/lib/ldb/tools/ldbdel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbdel.c b/source4/lib/ldb/tools/ldbdel.c index 04884e1bec..6994b3ddb6 100644 --- a/source4/lib/ldb/tools/ldbdel.c +++ b/source4/lib/ldb/tools/ldbdel.c @@ -87,8 +87,9 @@ int main(int argc, const char **argv) struct ldb_cmdline *options; struct ldb_context *ldb; int ret = 0, i; + TALLOC_CTX *mem_ctx = talloc_new(NULL); - ldb = ldb_init(NULL, NULL); + ldb = ldb_init(mem_ctx, NULL); options = ldb_cmdline_process(ldb, argc, argv, usage); @@ -127,7 +128,7 @@ int main(int argc, const char **argv) } } - talloc_free(ldb); + talloc_free(mem_ctx); return ret; } |