summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-12-22 21:20:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:35 -0500
commit7f773c9ae8b55a24369dab1a346446ca9baf1345 (patch)
treebcd9af880b5e0cebc7a283dc2ff758892374deb1 /source4/rpc_server
parentc533379c904866503778148d7cfbf99ba5989a7c (diff)
downloadsamba-7f773c9ae8b55a24369dab1a346446ca9baf1345.tar.gz
samba-7f773c9ae8b55a24369dab1a346446ca9baf1345.tar.bz2
samba-7f773c9ae8b55a24369dab1a346446ca9baf1345.zip
r4332: Fix a potential memleak.
Volker (This used to be commit 8f2b9c9d320dbea197808081528477d7e4c816d1)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 710d7830ef..239dd58b60 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -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;