summaryrefslogtreecommitdiff
path: root/source3/groupdb/aliasfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/groupdb/aliasfile.c')
-rw-r--r--source3/groupdb/aliasfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/groupdb/aliasfile.c b/source3/groupdb/aliasfile.c
index fc4489f50e..7f07192c74 100644
--- a/source3/groupdb/aliasfile.c
+++ b/source3/groupdb/aliasfile.c
@@ -137,8 +137,7 @@ static char *get_alias_members(char *p, int *num_mem, LOCAL_GRP_MEMBER **members
continue;
}
if (mbrs == NULL) {
- if (*members)
- free(*members);
+ SAFE_FREE(*members);
return NULL;
} else
(*members) = mbrs;