r6470: Remove ldb_search_free() it is not needed anymore.
[sfrench/samba-autobuild/.git] / source4 / lib / ldb / common / ldb.c
index 40616c59636c28464f64038b1e66ffb8986e6bd1..600c7063f01a4b400638c1e4b595a7e3c7321b16 100644 (file)
@@ -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