diff options
-rw-r--r-- | nsswitch/winbind_nss_aix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/winbind_nss_aix.c b/nsswitch/winbind_nss_aix.c index 17578cf3501..66200f35629 100644 --- 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; } |