git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
librpc/ndr: consolidate string conversion logic in ndr_pull_string
[nivanova/samba-autobuild/.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;
}