s3: smbd: Fix memory leak in smbd_server_connection_terminate_done().
commitb600b0c8d9690cb5eeded1e5925c8e667c11af04
authorJeremy Allison <jra@samba.org>
Thu, 15 Sep 2022 00:05:05 +0000 (14 17:05 -0700)
committerNoel Power <npower@samba.org>
Fri, 23 Sep 2022 09:51:20 +0000 (23 09:51 +0000)
treea3c64035bbf7bf9c832a2f5430e01ea1072fc523
parentf6b391e04a4d5974b908f4f375bd2876083aa7b2
s3: smbd: Fix memory leak in smbd_server_connection_terminate_done().

The function smbd_server_connection_terminate_done() does not free subreq
which is allocated in smbXsrv_connection_shutdown_send, this can be a
memory leakage if multi-channel is enabled.

Suggested fix by haihua yang <hhyangdev@gmail.com>

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15174

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Fri Sep 23 09:51:20 UTC 2022 on sn-devel-184
source3/smbd/smb2_server.c