diff options
author | Andrew Walker <awalker@ixsystems.com> | 2022-09-02 16:31:32 -0400 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2023-01-16 09:40:17 +0000 |
commit | d7bcdfa6b88d639c6d8c4352722b432d93fdb328 (patch) | |
tree | 2081e5697efc9291152cccd27261e2e0b24a1632 /nsswitch | |
parent | 113536e0d735a5235f8be29d4fd1cfc8177930b1 (diff) | |
download | samba-d7bcdfa6b88d639c6d8c4352722b432d93fdb328.tar.gz |
nsswitch:libwbclient - fix leak in wbcCtxPingDc2
Memory allocated for response is never freed.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15164
Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 6 20:10:17 UTC 2022 on sn-devel-184
(cherry picked from commit aa9f3a2da97ae13cce3e50fe3d58f143200e9a17)
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/libwbclient/wbc_pam.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c index b4bb2678ad0..4df0ffe2eb5 100644 --- a/nsswitch/libwbclient/wbc_pam.c +++ b/nsswitch/libwbclient/wbc_pam.c @@ -731,6 +731,7 @@ wbcErr wbcCtxPingDc2(struct wbcContext *ctx, const char *domain, BAIL_ON_WBC_ERROR(wbc_status); done: + winbindd_free_response(&response); return wbc_status; } |