diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2023-03-24 07:56:54 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-24 11:56:54 +0100 |
| commit | 26e30faff3e4489ede6444f895c7f6a7eae78d2d (patch) | |
| tree | a346c816b90b6a3996f74eb66bcba7880c603118 | |
| parent | 0992310b7689f2ea1dd828f063e553e1417823ec (diff) | |
Fix handle leak on IShopServiceAccessServerInterface.CreateServerInterface (#4591)
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Nim/IShopServiceAccessServerInterface.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Nim/IShopServiceAccessServerInterface.cs b/Ryujinx.HLE/HOS/Services/Nim/IShopServiceAccessServerInterface.cs index 98f5f6a8..342f1ba1 100644 --- a/Ryujinx.HLE/HOS/Services/Nim/IShopServiceAccessServerInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Nim/IShopServiceAccessServerInterface.cs @@ -14,6 +14,9 @@ namespace Ryujinx.HLE.HOS.Services.Nim // CreateServerInterface(pid, handle<unknown>, u64) -> object<nn::ec::IShopServiceAccessServer> public ResultCode CreateServerInterface(ServiceCtx context) { + // Close transfer memory immediately as we don't use it. + context.Device.System.KernelContext.Syscall.CloseHandle(context.Request.HandleDesc.ToCopy[0]); + MakeObject(context, new IShopServiceAccessServer()); Logger.Stub?.PrintStub(LogClass.ServiceNim); |
