From 284677c486dd138bfc586c93d1669010b29f1b41 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 24 Jun 2018 12:38:54 -0600 Subject: [PATCH] libstratosphere: Cleanup resources when doing OutSession for domains. --- .../libstratosphere/include/stratosphere/ipc_templating.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stratosphere/libstratosphere/include/stratosphere/ipc_templating.hpp b/stratosphere/libstratosphere/include/stratosphere/ipc_templating.hpp index 2ea9187ed..f0572e40b 100644 --- a/stratosphere/libstratosphere/include/stratosphere/ipc_templating.hpp +++ b/stratosphere/libstratosphere/include/stratosphere/ipc_templating.hpp @@ -400,6 +400,7 @@ void EncodeValueIntoIpcMessageBeforePrepare(DomainOwner *domain_owner, IpcComman domain_owner->reserve_object(value.session->get_service_object(), &value.domain_id); } value.session->close_handles(); + delete value.session; } else { ipcSendHandleMove(c, value.session ? value.session->get_client_handle() : 0x0); }