The branch, v4-15-test has been updated via d4e11e82ecd s3: smbd: Fix memory leak in smbd_server_connection_terminate_done(). from 6b5792b0a2c smbd: check for streams support in unix_convert()
https://git.samba.org/?p=samba.git;a=shortlog;h=v4-15-test - Log ----------------------------------------------------------------- commit d4e11e82ecd94e0c3aa25ca07a476619b7a9b1a5 Author: Jeremy Allison <j...@samba.org> Date: Wed Sep 14 17:05:05 2022 -0700 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 <hhyang...@gmail.com> BUG: https://bugzilla.samba.org/show_bug.cgi?id=15174 Signed-off-by: Jeremy Allison <j...@samba.org> Reviewed-by: Noel Power <noel.po...@suse.com> Autobuild-User(master): Noel Power <npo...@samba.org> Autobuild-Date(master): Fri Sep 23 09:51:20 UTC 2022 on sn-devel-184 (cherry picked from commit b600b0c8d9690cb5eeded1e5925c8e667c11af04) Autobuild-User(v4-15-test): Jule Anger <jan...@samba.org> Autobuild-Date(v4-15-test): Wed Sep 28 09:36:41 UTC 2022 on sn-devel-184 ----------------------------------------------------------------------- Summary of changes: source3/smbd/smb2_server.c | 1 + 1 file changed, 1 insertion(+) Changeset truncated at 500 lines: diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 0e4b98f8c35..1d6927aad22 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -1642,6 +1642,7 @@ static void smbd_server_connection_terminate_done(struct tevent_req *subreq) NTSTATUS status; status = smbXsrv_connection_shutdown_recv(subreq); + TALLOC_FREE(subreq); if (!NT_STATUS_IS_OK(status)) { exit_server("smbXsrv_connection_shutdown_recv failed"); } -- Samba Shared Repository