s4:ldb Put ltdb_private under the 'module'
authorAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 05:08:24 +0000 (16:08 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 11:43:56 +0000 (22:43 +1100)
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

index 63ce6e7aecc2706f6ca400845bfd17b323693591..56c8fa8d702178b5a8c3c3cc2eacae4270dc66ba 100644 (file)
@@ -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);