summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-21 19:02:57 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-21 19:02:57 +0000
commit45b794bdde0cb906216425c8fc2af8610aa8ad3c (patch)
tree6dd018021c24dee66dc57b23d3c876acc658293c /source3/rpc_server/srv_samr.c
parent52fed795e156b9db8a0f29d9087042ccdec093f5 (diff)
downloadsamba-45b794bdde0cb906216425c8fc2af8610aa8ad3c.tar.gz
samba-45b794bdde0cb906216425c8fc2af8610aa8ad3c.tar.bz2
samba-45b794bdde0cb906216425c8fc2af8610aa8ad3c.zip
the dynamic memory alloc blood-fest goes on...
(This used to be commit 134b20e2a7b5ddfa4cc9bf100de5025c7b98f594)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r--source3/rpc_server/srv_samr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index 876035186e..b1ee0cfe31 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -1242,6 +1242,7 @@ static void samr_reply_query_useraliases(SAMR_Q_QUERY_USERALIASES *q_u,
fstring usr_sid_str;
SAMR_R_QUERY_USERALIASES r_u;
+ ZERO_STRUCT(r_u);
DEBUG(5,("samr_query_useraliases: %d\n", __LINE__));
@@ -1340,6 +1341,7 @@ static void api_samr_query_useraliases( pipes_struct *p, prs_struct *data, prs_s
SAMR_Q_QUERY_USERALIASES q_u;
samr_io_q_query_useraliases("", &q_u, data, 0);
samr_reply_query_useraliases(&q_u, rdata);
+ samr_free_q_query_useraliases(&q_u);
}
/*******************************************************************
@@ -1704,6 +1706,7 @@ static void api_samr_lookup_rids( pipes_struct *p, prs_struct *data, prs_struct
SAMR_Q_LOOKUP_RIDS q_u;
samr_io_q_lookup_rids("", &q_u, data, 0);
samr_reply_lookup_rids(&q_u, rdata);
+ samr_free_q_lookup_rids(&q_u);
}