1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-18 00:23:50 +03:00

r6470: Remove ldb_search_free() it is not needed anymore.

Just use talloc_free() to release the memory after an ldb_search().
This commit is contained in:
Simo Sorce
2005-04-25 12:46:18 +00:00
committed by Gerald (Jerry) Carter
parent acf1d0a1b5
commit 4f0948dab0
20 changed files with 33 additions and 118 deletions

View File

@@ -162,6 +162,8 @@ 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
*/
int ldb_search(struct ldb_context *ldb,
const char *base,
@@ -169,12 +171,6 @@ int ldb_search(struct ldb_context *ldb,
const char *expression,
const char * const *attrs, struct ldb_message ***res);
/*
free a set of messages returned by ldb_search
*/
int ldb_search_free(struct ldb_context *ldb, struct ldb_message **msgs);
/*
add a record to the database. Will fail if a record with the given class and key
already exists