diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-10-17 01:21:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:17 -0500 |
commit | e36ea2e8ebe44079dd3989694f0235e77caf4fe2 (patch) | |
tree | 35b7b7ae23ff313520cefc376dfa0fe8aecd5095 /source4/lib/ldb/ldb_tdb | |
parent | 5535b43efd297deb31c900a60762af1642779278 (diff) | |
download | samba-e36ea2e8ebe44079dd3989694f0235e77caf4fe2.tar.gz samba-e36ea2e8ebe44079dd3989694f0235e77caf4fe2.tar.bz2 samba-e36ea2e8ebe44079dd3989694f0235e77caf4fe2.zip |
r19362: - don't need to store the baseinfo message after cache load
- set better names on talloc structures in ldb modules, making leaks
easier to track down
(This used to be commit 3bf76db42dc6dde5d71083216dba819869b31c75)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_tdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index b7a202442d..fd1c8780ae 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -1058,11 +1058,18 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url, talloc_free(ltdb); return -1; } + talloc_set_name_const(*module, "ldb_tdb backend"); (*module)->ldb = ldb; (*module)->prev = (*module)->next = NULL; (*module)->private_data = ltdb; (*module)->ops = <db_ops; + if (ltdb_cache_load(*module) != 0) { + talloc_free(*module); + talloc_free(ltdb); + return -1; + } + return 0; } |