diff options
author | Max Kerr <rmkerr@users.noreply.github.com> | 2018-04-09 19:18:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 19:18:30 +0300 |
commit | 7be5db36884888638e9901d3f783301d60eeb41c (patch) | |
tree | f1a2968f8867c92b2cdd1d3337162aa8033cc77c /src | |
parent | 14435e14d39bf70697956535b8ac6c96b49e9cea (diff) |
Stop nulling out fields in SafeDeleteSslContext dispose. (#28889)
Nulling out fields in SafeDeleteSslContext.Dispose causes occasional difficult to reproduce exceptions in CI. The fix is to stop nulling out these fields in the dispose method, and to allow the garbage collector to take care of them instead.
Fixes: #28759
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs b/src/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs index 913e7e590e..d1d142b4de 100644 --- a/src/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs +++ b/src/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs @@ -114,11 +114,6 @@ namespace System.Net _sslContext.Dispose(); _sslContext = null; } - - _toConnection = null; - _fromConnection = null; - _writeCallback = null; - _readCallback = null; } base.Dispose(disposing); |