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:
parent
94128f9f37
commit
560ae7615e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user