Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 7be5db3

Browse files
authored
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
1 parent 14435e1 commit 7be5db3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ protected override void Dispose(bool disposing)
114114
_sslContext.Dispose();
115115
_sslContext = null;
116116
}
117-
118-
_toConnection = null;
119-
_fromConnection = null;
120-
_writeCallback = null;
121-
_readCallback = null;
122117
}
123118

124119
base.Dispose(disposing);

0 commit comments

Comments
 (0)