git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/util/modules.c: Remove #if SAMBA_BUILD_ == 3 now we only have the waf build
[obnox/samba/samba-obnox.git]
/
nsswitch
/
winbind_nss_aix.c
diff --git
a/nsswitch/winbind_nss_aix.c
b/nsswitch/winbind_nss_aix.c
index 17578cf3501ad2b79206e0003a52f41748338dc1..66200f35629808278aad9762086bd1ed599f96f8 100644
(file)
--- a/
nsswitch/winbind_nss_aix.c
+++ b/
nsswitch/winbind_nss_aix.c
@@
-237,6
+237,9
@@
static struct group *fill_grent(struct winbindd_gr *gr, char *gr_mem)
result->gr_mem = (char **)malloc(sizeof(char *) * (gr->num_gr_mem+1));
if (!result->gr_mem) {
+ free(result->gr_name);
+ free(result->gr_passwd);
+ free(result);
errno = ENOMEM;
return NULL;
}