1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +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

@@ -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,