mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r4332: Fix a potential memleak.
Volker
(This used to be commit 8f2b9c9d32
)
This commit is contained in:
parent
c533379c90
commit
7f773c9ae8
@ -506,9 +506,9 @@ static NTSTATUS samr_CreateDomainGroup(struct dcesrv_call_state *dce_call, TALLO
|
||||
a_state->sam_ctx = d_state->sam_ctx;
|
||||
a_state->access_mask = r->in.access_mask;
|
||||
a_state->domain_state = talloc_reference(a_state, d_state);
|
||||
a_state->account_dn = talloc_steal(d_state, msg.dn);
|
||||
a_state->account_sid = talloc_strdup(d_state, sidstr);
|
||||
a_state->account_name = talloc_strdup(d_state, groupname);
|
||||
a_state->account_dn = talloc_steal(a_state, msg.dn);
|
||||
a_state->account_sid = talloc_strdup(a_state, sidstr);
|
||||
a_state->account_name = talloc_strdup(a_state, groupname);
|
||||
if (!a_state->account_name || !a_state->account_sid) {
|
||||
talloc_free(a_state);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user