Release pins before disposal (#412)

This commit is contained in:
Chris Ross 2017-11-02 19:34:12 -07:00 committed by GitHub
parent db210af712
commit 936f82874a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys
internal void AllocateNativeRequest(uint? size = null, ulong requestId = 0)
{
_nativeRequestContext?.ReleasePins();
_nativeRequestContext?.Dispose();
//Debug.Assert(size != 0, "unexpected size");