summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_search.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-10-16 03:15:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:07 -0500
commit1b8e6fa6e9b45eb99ee34fa1a7628598d287c0f9 (patch)
tree48465bdad4b309db591a57488ba11994c9aa068e /source4/lib/ldb/ldb_tdb/ldb_search.c
parentb0fadb51b210d6400bc66bce8603b522e1aad347 (diff)
downloadsamba-1b8e6fa6e9b45eb99ee34fa1a7628598d287c0f9.tar.gz
samba-1b8e6fa6e9b45eb99ee34fa1a7628598d287c0f9.tar.bz2
samba-1b8e6fa6e9b45eb99ee34fa1a7628598d287c0f9.zip
r19314: Commit tridge's fixes for a big mem leak in ltdb I introduced
when the code has been changed to be async. With the other committed fixes now this works. (This used to be commit 49fc640b5c0398516ac3a9e3f7c55205cd60b1de)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_search.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index 7cdb2b672f..85b6a123ca 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -499,12 +499,11 @@ int ltdb_search(struct ldb_module *module, struct ldb_request *req)
return LDB_ERR_OPERATIONS_ERROR;
}
- req->handle = init_ltdb_handle(ltdb, module, req->context, req->callback);
+ req->handle = init_ltdb_handle(ltdb, module, req);
if (req->handle == NULL) {
ltdb_unlock_read(module);
return LDB_ERR_OPERATIONS_ERROR;
}
-
ltdb_ac = talloc_get_type(req->handle->private_data, struct ltdb_context);
ltdb_ac->tree = req->op.search.tree;