diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 10:00:29 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 10:00:29 +0000 |
commit | e7db47bffba15bd087c90b3831f05d736b8b20e5 (patch) | |
tree | 50dbc25c60b485853deb9bf77d7df17877bbf0c5 /source3/rpc_parse/parse_creds.c | |
parent | 941a3a5d3a46fd4fb913fddc6aa956361d218d23 (diff) | |
download | samba-e7db47bffba15bd087c90b3831f05d736b8b20e5.tar.gz samba-e7db47bffba15bd087c90b3831f05d736b8b20e5.tar.bz2 samba-e7db47bffba15bd087c90b3831f05d736b8b20e5.zip |
move to SAFE_FREE()
(This used to be commit 94b0fde8a8a4e888cee93ebde79390c7942a2785)
Diffstat (limited to 'source3/rpc_parse/parse_creds.c')
-rw-r--r-- | source3/rpc_parse/parse_creds.c | 12 |
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); } /******************************************************************* |