Fix typo
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:
parent
7cc51959d9
commit
406d785b5e
|
|
@ -151,7 +151,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
var ptr = Interlocked.Exchange(ref _ptr, IntPtr.Zero);
|
var ptr = Interlocked.Exchange(ref _ptr, IntPtr.Zero);
|
||||||
if (ptr != IntPtr.Zero)
|
if (ptr != IntPtr.Zero)
|
||||||
{
|
{
|
||||||
Marshal.FreeHGlobal(_ptr);
|
Marshal.FreeHGlobal(ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue