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

r19330: Fix memleaks

(This used to be commit f163f422e3)
This commit is contained in:
Simo Sorce 2006-10-16 11:57:44 +00:00 committed by Gerald (Jerry) Carter
parent 8b60b7fa2a
commit 56bacd2b44

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;
}