mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
r19330: Fix memleaks
(This used to be commit f163f422e3f201d8b0e22538949eccf0f7e62143)
This commit is contained in:
parent
8b60b7fa2a
commit
56bacd2b44
@ -130,7 +130,6 @@ static int samldb_find_next_rid(struct ldb_module *module, TALLOC_CTX *mem_ctx,
|
|||||||
if (ret != LDB_SUCCESS) {
|
if (ret != LDB_SUCCESS) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
talloc_steal(mem_ctx, res);
|
|
||||||
if (res->count != 1) {
|
if (res->count != 1) {
|
||||||
talloc_free(res);
|
talloc_free(res);
|
||||||
return LDB_ERR_OPERATIONS_ERROR;
|
return LDB_ERR_OPERATIONS_ERROR;
|
||||||
@ -257,6 +256,7 @@ static int samldb_get_new_sid(struct ldb_module *module,
|
|||||||
ldb_asprintf_errstring(module->ldb,
|
ldb_asprintf_errstring(module->ldb,
|
||||||
"samldb_get_new_sid: error retrieving domain sid from %s: not found!\n",
|
"samldb_get_new_sid: error retrieving domain sid from %s: not found!\n",
|
||||||
ldb_dn_linearize(mem_ctx, dom_dn));
|
ldb_dn_linearize(mem_ctx, dom_dn));
|
||||||
|
talloc_free(res);
|
||||||
return LDB_ERR_CONSTRAINT_VIOLATION;
|
return LDB_ERR_CONSTRAINT_VIOLATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user