diff --git a/src/Core/WinSWCore/Native/Security.cs b/src/Core/WinSWCore/Native/Security.cs index 5f6f0c0..5ca0aea 100644 --- a/src/Core/WinSWCore/Native/Security.cs +++ b/src/Core/WinSWCore/Native/Security.cs @@ -17,7 +17,6 @@ namespace WinSW.Native } finally { - _ = FreeSid(sid); Marshal.FreeHGlobal(sid); } } diff --git a/src/Core/WinSWCore/Native/SecurityApis.cs b/src/Core/WinSWCore/Native/SecurityApis.cs index 5b1c88b..71c7f96 100644 --- a/src/Core/WinSWCore/Native/SecurityApis.cs +++ b/src/Core/WinSWCore/Native/SecurityApis.cs @@ -7,9 +7,6 @@ namespace WinSW.Native { internal static class SecurityApis { - [DllImport(Libraries.Advapi32, SetLastError = false)] - internal static extern IntPtr FreeSid(IntPtr sid); - [DllImport(Libraries.Advapi32, SetLastError = true)] internal static extern bool GetTokenInformation( IntPtr tokenHandle,