diff options
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 12 | ||||
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 8 |
2 files changed, 3 insertions, 17 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 40616c5963..600c7063f0 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -81,6 +81,9 @@ struct ldb_context *ldb_connect(const char *url, unsigned int flags, search the database given a LDAP-like search expression return the number of records found, or -1 on error + + Use talloc_free to free the ldb_message returned in 'res' + */ int ldb_search(struct ldb_context *ldb, const char *base, @@ -91,15 +94,6 @@ int ldb_search(struct ldb_context *ldb, return ldb->modules->ops->search(ldb->modules, base, scope, expression, attrs, res); } -/* - free a set of messages returned by ldb_search -*/ -int ldb_search_free(struct ldb_context *ldb, struct ldb_message **msgs) -{ - return ldb->modules->ops->search_free(ldb->modules, msgs); -} - - /* add a record to the database. Will fail if a record with the given class and key already exists diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index ffa150d773..644154d645 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -224,14 +224,6 @@ int ldb_next_search(struct ldb_module *module, return module->next->ops->search(module->next, base, scope, expression, attrs, res); } -int ldb_next_search_free(struct ldb_module *module, struct ldb_message **msg) -{ - if (!module->next) { - return -1; - } - return module->next->ops->search_free(module->next, msg); -} - int ldb_next_add_record(struct ldb_module *module, const struct ldb_message *message) { if (!module->next) { |