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

@@ -102,12 +102,12 @@ static int reg_close_ldb_key (void *data)
struct ldb_context *c = key->hive->backend_data;
if (kd->subkeys) {
ldb_search_free(c, kd->subkeys);
talloc_free(kd->subkeys);
kd->subkeys = NULL;
}
if (kd->values) {
ldb_search_free(c, kd->values);
talloc_free(kd->values);
kd->values = NULL;
}
return 0;
@@ -224,7 +224,7 @@ static WERROR ldb_open_key(TALLOC_CTX *mem_ctx, struct registry_key *h, const ch
(*key)->backend_data = newkd = talloc_zero(*key, struct ldb_key_data);
newkd->dn = talloc_strdup(mem_ctx, msg[0]->dn);
ldb_search_free(c, msg);
talloc_free(msg);
return WERR_OK;
}