summaryrefslogtreecommitdiff
path: root/source3/groupdb/aliasdb.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-09-17 00:58:15 +0000
committerSimo Sorce <idra@samba.org>2001-09-17 00:58:15 +0000
commit31c3f7a8b2ff62d4cfc1ed9d831b95eba0da525f (patch)
tree5cd11ebd4485c002b5f79fcc4a5aa807482a2b11 /source3/groupdb/aliasdb.c
parent77bdea1b95f0169c32ba13a4434e9cfb4089b7d3 (diff)
downloadsamba-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/aliasdb.c')
-rw-r--r--source3/groupdb/aliasdb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/groupdb/aliasdb.c b/source3/groupdb/aliasdb.c
index eff318db0d..2c96e92ee1 100644
--- a/source3/groupdb/aliasdb.c
+++ b/source3/groupdb/aliasdb.c
@@ -147,8 +147,7 @@ BOOL add_domain_alias(LOCAL_GRP **alss, int *num_alss, LOCAL_GRP *als)
talss = Realloc((*alss), ((*num_alss)+1) * sizeof(LOCAL_GRP));
if (talss == NULL) {
- if (*alss)
- free(*alss);
+ SAFE_FREE(*alss);
return False;
} else
(*alss) = talss;
@@ -228,8 +227,7 @@ BOOL iterate_getuseraliasnam(char *user_name, LOCAL_GRP **alss, int *num_alss)
ret = add_domain_alias(alss, num_alss, als);
}
- free(mem);
- mem = NULL;
+ SAFE_FREE(mem);
num_mem = 0;
if (!ret)