summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-21 16:08:24 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-10-21 22:43:56 +1100
commit937140bf102a2a92d7822f22f30a9adc19920834 (patch)
treef055660950d5c1eac2c0fa817c474bb2967f3ab5 /source4/lib
parenta0a787ad78a72b1bb9e7f9f7f28d18a4023a666b (diff)
downloadsamba-937140bf102a2a92d7822f22f30a9adc19920834.tar.gz
samba-937140bf102a2a92d7822f22f30a9adc19920834.tar.bz2
samba-937140bf102a2a92d7822f22f30a9adc19920834.zip
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
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c1
1 files changed, 1 insertions, 0 deletions
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);