summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_creds.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_parse/parse_creds.c')
-rw-r--r--source3/rpc_parse/parse_creds.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source3/rpc_parse/parse_creds.c b/source3/rpc_parse/parse_creds.c
index ae8ba23a56..1ad9143009 100644
--- a/source3/rpc_parse/parse_creds.c
+++ b/source3/rpc_parse/parse_creds.c
@@ -147,11 +147,7 @@ frees a structure.
********************************************************************/
void creds_free_unix_sec(CREDS_UNIX_SEC *r_u)
{
- if (r_u->grps != NULL)
- {
- free(r_u->grps);
- r_u->grps = NULL;
- }
+ SAFE_FREE(r_u->grps);
}
/*******************************************************************
@@ -225,11 +221,7 @@ frees a structure.
********************************************************************/
void creds_free_nt_sec(CREDS_NT_SEC *r_u)
{
- if (r_u->grp_rids != NULL)
- {
- free(r_u->grp_rids);
- r_u->grp_rids = NULL;
- }
+ SAFE_FREE(r_u->grp_rids);
}
/*******************************************************************