summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-02 23:32:16 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-02 23:32:16 +0000
commit70115706101a11b32f598b80731468a9ce4bfb87 (patch)
treefb62bdf633cae5b753cca1e15c3d46aa810cb8e7
parentaa77f20a5b8fc83799e4befe668eb2da42727ac7 (diff)
downloadsamba-70115706101a11b32f598b80731468a9ce4bfb87.tar.gz
samba-70115706101a11b32f598b80731468a9ce4bfb87.tar.bz2
samba-70115706101a11b32f598b80731468a9ce4bfb87.zip
free up memory allocated by enum dom groups / aliases
(This used to be commit edb49e754b66ecb59685234338a96d48a53f0161)
-rw-r--r--source3/rpc_server/srv_samr.c20
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__));
}