git.samba.org
/
jra
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e8da4
)
Fix memleak in _nss_winbind_initgroups_dyn
author
Sushmita Bhattacharya
<sushmita.bhattacharya@oracle.com>
Fri, 9 Dec 2022 10:55:53 +0000
(10:55 +0000)
committer
Jeremy Allison
<jra@samba.org>
Fri, 9 Dec 2022 23:11:37 +0000
(23:11 +0000)
Free the response at the end of _nss_winbind_initgroups_dyn
Signed-off-by: Sushmita Bhattacharya <sushmita.bhattacharya@oracle.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
nsswitch/winbind_nss_linux.c
patch
|
blob
|
history
diff --git
a/nsswitch/winbind_nss_linux.c
b/nsswitch/winbind_nss_linux.c
index 1d647ca25e58c54ff752eb84aa81a12501e901fa..a19c86dcdcc78831a8ade3cbfda6c7fecc41fb76 100644
(file)
--- a/
nsswitch/winbind_nss_linux.c
+++ b/
nsswitch/winbind_nss_linux.c
@@
-1165,6
+1165,7
@@
_nss_winbind_initgroups_dyn(const char *user, gid_t group, long int *start,
/* Back to your regularly scheduled programming */
done:
+ winbindd_free_response(&response);
#ifdef DEBUG_NSS
fprintf(stderr, "[%5d]: initgroups %s returns %s (%d)\n", getpid(),
user, nss_err_str(ret), ret);