diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index 7af69a2eb4..e85621a8a0 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -679,6 +679,16 @@ static void samr_reply_enum_dom_groups(SAMR_Q_ENUM_DOM_GROUPS *q_u, free(grps); } + if (r_e.sam != NULL) + { + free(r_e.sam); + } + + if (r_e.uni_grp_name != NULL) + { + free(r_e.uni_grp_name); + } + DEBUG(5,("samr_enum_dom_groups: %d\n", __LINE__)); } @@ -765,6 +775,16 @@ static void samr_reply_enum_dom_aliases(SAMR_Q_ENUM_DOM_ALIASES *q_u, free(alss); } + if (r_e.sam != NULL) + { + free(r_e.sam); + } + + if (r_e.uni_grp_name != NULL) + { + free(r_e.uni_grp_name); + } + DEBUG(5,("samr_enum_dom_aliases: %d\n", __LINE__)); } |