diff options
Diffstat (limited to 'src/libnsss/nsss_switch_getgrent_r.c')
-rw-r--r-- | src/libnsss/nsss_switch_getgrent_r.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnsss/nsss_switch_getgrent_r.c b/src/libnsss/nsss_switch_getgrent_r.c index 97a7bbd..92a4264 100644 --- a/src/libnsss/nsss_switch_getgrent_r.c +++ b/src/libnsss/nsss_switch_getgrent_r.c @@ -26,10 +26,12 @@ int nsss_switch_getgrent_r (struct group *gr, char *buf, size_t buflen, struct g } if (!nsss_grp_copy(gr, buf, buflen, &gr2, sa.s, sa.len, genalloc_s(char *, &ga), genalloc_len(char *, &ga))) { + genalloc_free(char *, &ga) ; stralloc_free(&sa) ; *grp = 0 ; return errno ; } + genalloc_free(char *, &ga) ; stralloc_free(&sa) ; *grp = gr ; return (errno = e, 0) ; |