/*
- Unix SMB/Netbios implementation.
- Version 1.9.
+ Unix SMB/CIFS implementation.
Password and authentication handling
Copyright (C) Jeremy Allison 1996-1998
Copyright (C) Luke Kenneth Casson Leighton 1996-1998
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
* NOTE. All these functions are abstracted into a structure
* that points to the correct function for the selected database. JRA.
DOMAIN_GRP *tgrps;
if (grps == NULL || num_grps == NULL || grp == NULL)
- {
return False;
- }
tgrps = Realloc((*grps), ((*num_grps)+1) * sizeof(DOMAIN_GRP));
- if (tgrps == NULL)
- {
+ if (tgrps == NULL) {
+ SAFE_FREE(*grps);
return False;
- }
- else (*grps) = tgrps;
+ } else
+ (*grps) = tgrps;
DEBUG(10,("adding group %s(%s)\n", grp->name, grp->comment));
ret = add_domain_group(grps, num_grps, grp);
}
- free(mem);
- mem = NULL;
+ SAFE_FREE(mem);
num_mem = 0;
if (!ret)