Looks like value from wrong variable is passed to Marshal.FreeHGlobal method. So IntPtr.Zero is passed to the method and actual pointer is lost.
This commit is contained in:
sergey-tom 2016-01-05 15:14:49 +01:00
parent 7cc51959d9
commit 406d785b5e
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
var ptr = Interlocked.Exchange(ref _ptr, IntPtr.Zero);
if (ptr != IntPtr.Zero)
{
Marshal.FreeHGlobal(_ptr);
Marshal.FreeHGlobal(ptr);
}
}