mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
free up memory allocated by enum dom groups / aliases
This commit is contained in:
parent
baa789fabc
commit
edb49e754b
@ -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__));
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user