1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Realloc fixes.

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 94128f9f37
commit 560ae7615e

View File

@ -131,8 +131,9 @@ static char *get_group_members(char *p, int *num_mem, DOMAIN_GRP_MEMBER **member
DOMAIN_GRP_MEMBER *mbrs;
mbrs = Realloc((*members), ((*num_mem)+1) * sizeof(DOMAIN_GRP_MEMBER));
if (mbrs == NULL)
{
if (mbrs == NULL) {
if (*members)
free(*members);
return NULL;
}
else (*members) = mbrs;