diff options
author | Simo Sorce <idra@samba.org> | 2005-04-25 12:46:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:40 -0500 |
commit | fe4d985b6f3d318d9b58a16677be3b4ae34fba15 (patch) | |
tree | 2cc878469fa214d73b852341e080d176a9577d3f /source4/lib/ldb/include/ldb.h | |
parent | c06297f776d92354e92f0ddda659778d57f426e5 (diff) | |
download | samba-fe4d985b6f3d318d9b58a16677be3b4ae34fba15.tar.gz samba-fe4d985b6f3d318d9b58a16677be3b4ae34fba15.tar.bz2 samba-fe4d985b6f3d318d9b58a16677be3b4ae34fba15.zip |
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)
Diffstat (limited to 'source4/lib/ldb/include/ldb.h')
-rw-r--r-- | source4/lib/ldb/include/ldb.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index 0eb661d7ce..f748bb6b42 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -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 |