summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-21 09:03:31 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-21 09:09:04 +0200
commit0b8b9aed34b9ad80d36860840e024330ae7cd671 (patch)
treebdbfc29324b176916f601c1787606a4de786ac8a /source4/lib/ldb
parentde9b7372334483786c856db9b55ae0f24308f27f (diff)
downloadsamba-0b8b9aed34b9ad80d36860840e024330ae7cd671.tar.gz
samba-0b8b9aed34b9ad80d36860840e024330ae7cd671.tar.bz2
samba-0b8b9aed34b9ad80d36860840e024330ae7cd671.zip
ldb:ldb_tdb/ldb_cache.c - remove a superflous "talloc_free"
Didn't realise that this is already called by "ltdb_attributes_unload".
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_cache.c b/source4/lib/ldb/ldb_tdb/ldb_cache.c
index f318166ceb..697f7427a4 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_cache.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_cache.c
@@ -348,10 +348,8 @@ int ltdb_cache_load(struct ldb_module *module)
talloc_free(ltdb->cache->last_attribute.name);
memset(&ltdb->cache->last_attribute, 0, sizeof(ltdb->cache->last_attribute));
- ltdb_attributes_unload(module);
-
talloc_free(ltdb->cache->indexlist);
- talloc_free(ltdb->cache->attributes);
+ ltdb_attributes_unload(module); /* calls internally "talloc_free" */
ltdb->cache->indexlist = ldb_msg_new(ltdb->cache);
ltdb->cache->attributes = ldb_msg_new(ltdb->cache);