1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r19330: Fix memleaks

This commit is contained in:
Simo Sorce 2006-10-16 11:57:44 +00:00 committed by Gerald (Jerry) Carter
parent 3f48bcb058
commit f163f422e3

View File

@ -130,7 +130,6 @@ static int samldb_find_next_rid(struct ldb_module *module, TALLOC_CTX *mem_ctx,
if (ret != LDB_SUCCESS) {
return ret;
}
talloc_steal(mem_ctx, res);
if (res->count != 1) {
talloc_free(res);
return LDB_ERR_OPERATIONS_ERROR;
@ -257,6 +256,7 @@ static int samldb_get_new_sid(struct ldb_module *module,
ldb_asprintf_errstring(module->ldb,
"samldb_get_new_sid: error retrieving domain sid from %s: not found!\n",
ldb_dn_linearize(mem_ctx, dom_dn));
talloc_free(res);
return LDB_ERR_CONSTRAINT_VIOLATION;
}