From fe4d985b6f3d318d9b58a16677be3b4ae34fba15 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 25 Apr 2005 12:46:18 +0000 Subject: r6470: Remove ldb_search_free() it is not needed anymore. Just use talloc_free() to release the memory after an ldb_search(). (This used to be commit 4f0948dab0aa5e8b6a4ce486f3668ca8dfae23db) --- source4/lib/ldb/ldb_ldap/ldb_ldap.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'source4/lib/ldb/ldb_ldap') diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c index dc392dd56b..c62c1b9e56 100644 --- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c +++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c @@ -125,16 +125,6 @@ static int lldb_delete(struct ldb_module *module, const char *dn) return ret; } -/* - free a search result -*/ -static int lldb_search_free(struct ldb_module *module, struct ldb_message **res) -{ - talloc_free(res); - return 0; -} - - /* add a single set of ldap message values to a ldb_message */ @@ -290,7 +280,7 @@ static int lldb_search(struct ldb_module *module, const char *base, return msg_count; failed: - if (*res) lldb_search_free(module, *res); + if (*res) talloc_free(*res); return -1; } @@ -459,7 +449,6 @@ static const char *lldb_errstring(struct ldb_module *module) static const struct ldb_module_ops lldb_ops = { "ldap", lldb_search, - lldb_search_free, lldb_add, lldb_modify, lldb_delete, -- cgit