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); }