diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 00:58:15 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 00:58:15 +0000 |
commit | 31c3f7a8b2ff62d4cfc1ed9d831b95eba0da525f (patch) | |
tree | 5cd11ebd4485c002b5f79fcc4a5aa807482a2b11 /source3/groupdb/groupdb.c | |
parent | 77bdea1b95f0169c32ba13a4434e9cfb4089b7d3 (diff) | |
download | samba-31c3f7a8b2ff62d4cfc1ed9d831b95eba0da525f.tar.gz samba-31c3f7a8b2ff62d4cfc1ed9d831b95eba0da525f.tar.bz2 samba-31c3f7a8b2ff62d4cfc1ed9d831b95eba0da525f.zip |
move to SAFE_FREE()
(This used to be commit 89833bbbd8508dcdca70dff2c94e1d8f22535f1f)
Diffstat (limited to 'source3/groupdb/groupdb.c')
-rw-r--r-- | source3/groupdb/groupdb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/groupdb/groupdb.c b/source3/groupdb/groupdb.c index 227d63e8e3..8b29a32423 100644 --- a/source3/groupdb/groupdb.c +++ b/source3/groupdb/groupdb.c @@ -145,8 +145,7 @@ BOOL add_domain_group(DOMAIN_GRP **grps, int *num_grps, DOMAIN_GRP *grp) tgrps = Realloc((*grps), ((*num_grps)+1) * sizeof(DOMAIN_GRP)); if (tgrps == NULL) { - if (*grps) - free(*grps); + SAFE_FREE(*grps); return False; } else (*grps) = tgrps; @@ -224,8 +223,7 @@ BOOL iterate_getusergroupsnam(char *user_name, DOMAIN_GRP **grps, int *num_grps) ret = add_domain_group(grps, num_grps, grp); } - free(mem); - mem = NULL; + SAFE_FREE(mem); num_mem = 0; if (!ret) |