From 937140bf102a2a92d7822f22f30a9adc19920834 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 21 Oct 2009 16:08:24 +1100 Subject: s4:ldb Put ltdb_private under the 'module' This helps track the memory better, as we can then place it under the partition hirarchy. Andrew Bartlett --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index 63ce6e7aec..56c8fa8d70 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -1352,6 +1352,7 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url, return -1; } ldb_module_set_private(module, ltdb); + talloc_steal(module, ltdb); if (ltdb_cache_load(module) != 0) { talloc_free(module); -- cgit