Implemented interface member:
method
Dispose
System.IDisposable.Dispose()
462 references to Dispose
Infrastructure.Common (4)
SafeKeychainHandle.cs (4)
57keychain.Dispose(); 72keychain.Dispose(); 83keychain.Dispose(); 98handle.Dispose();
Microsoft.AspNetCore.Cryptography.Internal (1)
UnsafeNativeMethods.cs (1)
447newHandle.Dispose();
Microsoft.AspNetCore.DataProtection (4)
Cng\DpapiSecretSerializerHelper.cs (1)
355unprotectedDataHandle.Dispose();
Secret.cs (1)
116_localAllocHandle.Dispose();
SP800_108\Win7SP800_108_CTR_HMACSHA512Provider.cs (1)
77_hashHandle.Dispose();
SP800_108\Win8SP800_108_CTR_HMACSHA512Provider.cs (1)
70_keyHandle.Dispose();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Interop\JobHandleWrapper.cs (1)
24_winJobHandle.Dispose();
Microsoft.ML.LightGbm (2)
WrappedLightGbmBooster.cs (1)
320Handle?.Dispose();
WrappedLightGbmDataset.cs (1)
106_handle?.Dispose();
Microsoft.ML.Transforms (1)
Text\LdaSingleBox.cs (1)
371_engine.Dispose();
Microsoft.Win32.Registry (7)
Microsoft\Win32\RegistryKey.cs (7)
136_hkey.Dispose(); 251result.Dispose(); 468foreignHKey.Dispose(); 515result.Dispose(); 559result.Dispose(); 585result.Dispose(); 698result.Dispose();
NuGet.Packaging (3)
NuGetExtractionFileIO.cs (1)
83sfh.Dispose();
Signing\Cms\HeapBlockRetainer.cs (1)
47h.Dispose();
Signing\Cms\NativeCms.cs (1)
515_handle.Dispose();
PresentationCore (8)
MS\Internal\FontCache\FontCacheUtil.cs (2)
797_viewHandle?.Dispose(); 798_mappingHandle?.Dispose();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
267_hContext.Dispose();
System\Windows\Input\Cursor.cs (1)
119_cursorHandle?.Dispose();
System\Windows\Media\ColorContext.cs (1)
112_colorContextHandle.Dispose();
System\Windows\Media\Imaging\BitmapMetadata.cs (1)
305pIMetadataReader?.Dispose();
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
315_pBackBufferLock.Dispose(); 627_pDoubleBufferedBitmap.Dispose();
PresentationFramework (11)
MS\Internal\AppModel\IconHelper.cs (2)
262colorBitmap?.Dispose(); 265maskBitmap?.Dispose();
System\Windows\Controls\Primitives\Popup.cs (2)
2841iconInfo.hbmColor.Dispose(); 2842iconInfo.hbmMask.Dispose();
System\Windows\Standard\NativeMethods.cs (3)
1434dc.Dispose(); 1465dc.Dispose(); 1544safeHandle.Dispose();
System\Windows\Window.cs (4)
4130_currentLargeIconHandle.Dispose(); 4135_currentSmallIconHandle.Dispose(); 6593hicon.Dispose(); 6805icon.Dispose();
ReachFramework (8)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
64this._compstuiHandle?.Dispose();
MS\Internal\Printing\Configuration\HGlobalBuffer.cs (1)
51handle?.Dispose();
MS\Internal\Printing\Configuration\UnsafeNativeMethods.cs (1)
53handle.Dispose();
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
38this._devMode?.Dispose();
PrintConfig\FallbackPTProvider.cs (2)
352_deviceHandle?.Dispose(); 659_deviceHandle?.Dispose();
PrintConfig\PTProvider.cs (2)
515_providerHandle.Dispose(); 537_providerHandle?.Dispose();
System.Console (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\ConsolePal.Unix.ConsoleStream.cs (1)
37_handle.Dispose();
System\TermInfo.DatabaseFactory.cs (1)
91fd.Dispose();
System.Data.Odbc (11)
System\Data\Odbc\OdbcCommand.cs (8)
684parameterBuffer?.Dispose(); 1040_dataReaderBuf.Dispose(); 1047buffer?.Dispose(); 1058handle.Dispose(); 1070handle.Dispose(); 1080handle.Dispose(); 1103handle.Dispose(); 1126handle.Dispose();
System\Data\Odbc\OdbcConnection.cs (1)
377connectionHandle.Dispose();
System\Data\Odbc\OdbcEnvironment.cs (1)
36((OdbcEnvironmentHandle)globalEnvironmentHandle).Dispose(); // internally refcounted so will happen correctly
System\Data\Odbc\OdbcEnvironmentHandle.cs (1)
41Dispose();
System.Data.OleDb (11)
ColumnBinding.cs (1)
209sptr?.Dispose();
OleDbConnectionInternal.cs (4)
117_sessionwrp.Dispose(); 122_datasrcwrp.Dispose(); 315_sessionwrp?.Dispose(); 316_datasrcwrp?.Dispose();
OleDbDataReader.cs (2)
718rowHandleNativeBuffer?.Dispose(); 791chapter.Dispose();
OleDbTransaction.cs (3)
219_transaction.Dispose(); 252_transaction.Dispose(); 336_transaction.Dispose();
RowBinding.cs (1)
338base.Dispose();
System.Diagnostics.EventLog (24)
System\Diagnostics\EventLogInternal.cs (2)
1082handle.Dispose(); 1107handle.Dispose();
System\Diagnostics\Reader\EventLogConfiguration.cs (1)
276_handle.Dispose();
System\Diagnostics\Reader\EventLogPropertySelector.cs (1)
48Handle.Dispose();
System\Diagnostics\Reader\EventLogReader.cs (1)
194_handle.Dispose();
System\Diagnostics\Reader\EventLogRecord.cs (1)
399Handle.Dispose();
System\Diagnostics\Reader\EventLogSession.cs (4)
120erLogin.Password.Dispose(); 142this.renderContextHandleSystem.Dispose(); 146this.renderContextHandleUser.Dispose(); 149Handle.Dispose();
System\Diagnostics\Reader\EventLogWatcher.cs (1)
145_handle.Dispose();
System\Diagnostics\Reader\NativeWrapper.cs (10)
62handle.Dispose(); 129handle.Dispose(); 152emEnumHandle.Dispose(); 167emHandle.Dispose(); 182channelEnum.Dispose(); 195pubEnum.Dispose(); 208handle.Dispose(); 229logHandle.Dispose(); 285renderContextHandleValues.Dispose(); 338handle.Dispose();
System\Diagnostics\Reader\ProviderMetadata.cs (3)
225elHandle.Dispose(); 410elHandle.Dispose(); 544_handle.Dispose();
System.Diagnostics.PerformanceCounter (4)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.ProcessWaitHandle.cs (1)
30waitHandle.Dispose();
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
87MatchedProvider._hProvider.Dispose();
System\Diagnostics\PerformanceDataRegistryKey.cs (2)
33foreignHKey.Dispose(); 112_hkey.Dispose();
System.Diagnostics.Process (7)
System\Diagnostics\Process.cs (7)
776_processHandle!.Dispose(); 1268parentInputPipeHandle?.Dispose(); 1269parentOutputPipeHandle?.Dispose(); 1270parentErrorPipeHandle?.Dispose(); 1284childInputHandle?.Dispose(); 1288childOutputHandle?.Dispose(); 1292childErrorHandle?.Dispose();
System.DirectoryServices (4)
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (1)
1012policyHandle?.Dispose();
System\DirectoryServices\ActiveDirectory\Utils.cs (3)
2052tokenHandle.Dispose(); 2131tokenHandle?.Dispose(); 2188policyHandle?.Dispose();
System.DirectoryServices.AccountManagement (12)
System\DirectoryServices\AccountManagement\AD\SidList.cs (6)
96policyHandle.Dispose(); 123domainsHandle.Dispose(); 124namesHandle.Dispose(); 201domainsHandle?.Dispose(); 202namesHandle?.Dispose(); 203policyHandle?.Dispose();
System\DirectoryServices\AccountManagement\AuthZSet.cs (3)
194_psBuffer?.Dispose(); 195_psUserSid?.Dispose(); 196_psMachineSid?.Dispose();
System\DirectoryServices\AccountManagement\Utils.cs (3)
364tokenHandle.Dispose(); 457tokenHandle?.Dispose(); 527policyHandle?.Dispose();
System.DirectoryServices.Protocols (2)
System\DirectoryServices\Protocols\common\BerConverter.cs (1)
449berElement?.Dispose();
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
1163_ldapHandle.Dispose();
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System.IO.Compression (19)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (2)
223zLibStreamHandle.Dispose(); 240zLibStreamHandle.Dispose();
System\IO\Compression\DeflateDecoder.cs (1)
39_state?.Dispose();
System\IO\Compression\DeflateEncoder.cs (1)
128_state?.Dispose();
System\IO\Compression\DeflateZLib\Deflater.cs (1)
52_zlibStream.Dispose();
System\IO\Compression\DeflateZLib\Inflater.cs (1)
206_zlibStream.Dispose();
System\IO\Compression\Zstandard\ZstandardDecoder.cs (4)
53_context.Dispose(); 76_context.Dispose(); 106_context.Dispose(); 351_context.Dispose();
System\IO\Compression\Zstandard\ZstandardDictionary.cs (3)
67compressionDict.Dispose(); 191_compressionDictionary.Dispose(); 192_decompressionDictionary.Dispose();
System\IO\Compression\Zstandard\ZstandardEncoder.cs (6)
51_context.Dispose(); 71_context.Dispose(); 99_context.Dispose(); 128_context.Dispose(); 178_context.Dispose(); 451_context.Dispose();
System.IO.Compression.Brotli (2)
System\IO\Compression\dec\BrotliDecoder.cs (1)
35_state?.Dispose();
System\IO\Compression\enc\BrotliEncoder.cs (1)
60_state?.Dispose();
System.IO.FileSystem.AccessControl (1)
System\IO\FileSystemAclExtensions.cs (1)
187handle.Dispose();
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System.IO.FileSystem.Watcher (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\FileSystemWatcher.Linux.cs (2)
153handle.Dispose(); 215_inotifyHandle.Dispose();
System.IO.MemoryMappedFiles (12)
Microsoft\Win32\SafeMemoryMappedFileHandle.Unix.cs (1)
79_fileStreamHandle.Dispose();
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (4)
137fileHandle.Dispose(); 466_handle.Dispose(); 473_fileHandle?.Dispose(); 508fileHandle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (5)
194fd.Dispose(); 240fd.Dispose(); 277fd.Dispose(); 301fd.Dispose(); 326fileHandle.Dispose();
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
50_viewHandle.Dispose();
System.IO.Pipes (12)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\Pipes\AnonymousPipeClientStream.cs (1)
40safePipeHandle.Dispose();
System\IO\Pipes\AnonymousPipeServerStream.cs (1)
117_clientHandle.Dispose();
System\IO\Pipes\AnonymousPipeServerStream.Unix.cs (4)
34serverHandle?.Dispose(); 35clientHandle?.Dispose(); 49serverHandle.Dispose(); 50clientHandle.Dispose();
System\IO\Pipes\NamedPipeClientStream.Unix.cs (2)
48clientHandle?.Dispose(); 71clientHandle.Dispose();
System\IO\Pipes\NamedPipeServerStream.Unix.cs (2)
127serverHandle.Dispose(); 150InternalHandle!.Dispose();
System\IO\Pipes\PipeStream.cs (1)
158_handle.Dispose();
System.IO.Ports (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
System\IO\Ports\SafeSerialDeviceHandle.Unix.cs (1)
26handle.Dispose();
System\IO\Ports\SerialStream.Unix.cs (2)
665tempHandle.Dispose(); 729_handle.Dispose();
System.Net.Http.WinHttpHandler (11)
src\runtime\src\libraries\Common\src\Interop\Windows\WinHttp\Interop.SafeWinHttpHandle.cs (1)
28safeHandle.Dispose();
System\Net\Http\WinHttpHandler.cs (5)
583_sessionHandle?.Dispose(); 938state.RequestHandle?.Dispose(); 1024connectHandle?.Dispose(); 1646handle.Dispose(); 1672state.RequestHandle.Dispose();
System\Net\Http\WinHttpRequestCallback.cs (1)
135state.RequestHandle?.Dispose();
System\Net\Http\WinHttpRequestState.cs (1)
91RequestHandle.Dispose();
System\Net\Http\WinHttpResponseStream.cs (2)
323_requestHandle.Dispose(); 354_requestHandle?.Dispose(); // null check necessary to handle race condition between stream disposal and cancellation
System\Net\Http\WinHttpTransportContext.cs (1)
36channelBinding.Dispose();
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
164sh.Dispose();
System.Net.Quic (13)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
96handle?.Dispose();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
154store.Dispose();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (2)
46newStore.Dispose(); 53newStore.Dispose();
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (3)
92handle.Dispose(); 93handle.Dispose(); 142handle.Dispose();
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
305configurationHandle.Dispose();
System\Net\Quic\QuicConnection.cs (2)
852_handle.Dispose(); 854_configuration?.Dispose();
System\Net\Quic\QuicListener.cs (1)
428_handle.Dispose();
System\Net\Quic\QuicStream.cs (1)
790_handle.Dispose();
System.Net.Security (30)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
96handle?.Dispose();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
310sslCtx.Dispose(); 398sslHandle.Dispose();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (7)
340dupCertHandle.Dispose(); // we still own the safe handle; clean it up 445readBio.Dispose(); 446writeBio.Dispose(); 447handle.Dispose(); // will make IsInvalid==true if it's not already 491_readBio?.Dispose(); 492_writeBio?.Dispose(); 505SslContextHandle?.Dispose();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
58dupCertHandle.Dispose(); // we still own the safe handle; clean it up
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
154store.Dispose();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (2)
46newStore.Dispose(); 53newStore.Dispose();
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs (3)
26retHandle.Dispose(); 43retHandle.Dispose(); 125retHandle.Dispose();
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (3)
92handle.Dispose(); 93handle.Dispose(); 142handle.Dispose();
System\Net\NegotiateAuthenticationPal.Unix.cs (4)
257_credentialsHandle?.Dispose(); 258_targetNameHandle?.Dispose(); 259_securityContext?.Dispose(); 623targetNameHandle?.Dispose();
System\Net\Security\SslStream.Protocol.cs (3)
145_securityContext?.Dispose(); 146_credentialsHandle?.Dispose(); 910_credentialsHandle?.Dispose();
System\Net\Security\SslStreamCertificateContext.Linux.cs (2)
424CertificateHandle.Dispose(); 425KeyHandle.Dispose();
System.Net.Sockets (9)
System\Net\Sockets\SafeSocketHandle.cs (1)
103Dispose();
System\Net\Sockets\Socket.cs (2)
1083acceptedSocketHandle.Dispose(); 3432handle.Dispose();
System\Net\Sockets\Socket.Unix.cs (3)
146oldHandle.Dispose(); 155_handle.Dispose(); 243_handle.Dispose();
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
268s?.Dispose();
System\Net\Sockets\SocketPal.Unix.cs (2)
99socket.Dispose(); 2142fs?.Dispose();
System.Net.WebSockets (6)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (2)
223zLibStreamHandle.Dispose(); 240zLibStreamHandle.Dispose();
System\Net\WebSockets\Compression\WebSocketDeflater.cs (2)
29_stream?.Dispose(); 117_stream.Dispose();
System\Net\WebSockets\Compression\WebSocketInflater.cs (2)
61_stream?.Dispose(); 192_stream.Dispose();
System.Private.CoreLib (25)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
100handle.Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (6)
121handle.Dispose(); 207tempReadHandle.Dispose(); 208tempWriteHandle.Dispose(); 276safeFileHandle.Dispose(); 282safeFileHandle?.Dispose(); 506Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
1208sfh.Dispose(); 1280sfh.Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (7)
356_fileHandle.Dispose(); 431fd.Dispose(); 437fd.Dispose(); 443fd.Dispose(); 462fd.Dispose(); 484fd.Dispose(); 781fd.Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (3)
63_fileHandle.Dispose(); 117_fileHandle.Dispose(); 129_fileHandle.Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SafeHandleMarshaller.cs (2)
142_newHandle.Dispose(); 194_newHandle.Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
97public void Close() => Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (2)
93oldBuffer.Dispose(); 166_buffer.Dispose();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (1)
472_sharedLockFileHandle.Dispose();
System.Security.AccessControl (3)
System\Security\AccessControl\Privilege.cs (1)
303this.threadHandle.Dispose();
System\Security\Principal\Win32.cs (2)
31phThreadToken.Dispose(); 42phThreadToken.Dispose();
System.Security.Cryptography (126)
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\SafeProvHandle.cs (1)
113hIgnoredProv.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\BCryptAeadHandleCache.cs (1)
45newHandle.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\BCryptAlgorithmCache.cs (2)
42handle.Dispose(); 79handle.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptDuplicateHash.cs (1)
19newHash.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptGenerateKeyPair.cs (1)
31hKey.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptImportKeyPair.cs (1)
46key.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptOpenAlgorithmProvider.cs (1)
33hAlgorithm.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptSecretAgreement.cs (1)
31agreedSecret.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs (1)
47secretAgreement.Dispose();
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.Windows.cs (1)
48_keyHandle.Dispose();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (1)
29providerHandle.Dispose();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.NamedCurve.cs (1)
184keyHandle.Dispose();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (3)
114keyHandle?.Dispose(); 215_key?.Dispose(); 270hAlgorithm.Dispose();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.Windows.cs (2)
48keyHandle.Dispose(); 154hAlgorithm.Dispose();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (3)
26_keyHandle.Dispose(); 161keyHandle.Dispose(); 183sp800108CtrHmacAlgorithmHandle.Dispose();
System\Security\Cryptography\AesCcm.Windows.cs (1)
45_keyHandle.Dispose();
System\Security\Cryptography\AesImplementation.cs (3)
36_keyBox?.Dispose(); 81_keyBox?.Dispose(); 91_keyBox?.Dispose();
System\Security\Cryptography\BasicSymmetricCipherCsp.cs (2)
50hKey.Dispose(); 57hProvider.Dispose();
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
121_hKey?.Dispose();
System\Security\Cryptography\CapiHelper.DSA.Windows.cs (1)
38safeProvHandle.Dispose();
System\Security\Cryptography\CapiHelper.Windows.cs (16)
65safeProvHandle.Dispose(); 130hProv.Dispose(); 185hProv.Dispose(); 239hProv.Dispose(); 273safeProvHandle.Dispose(); 295safeProvHandle.Dispose(); 311safeProvHandle.Dispose(); 443safeKeyHandle.Dispose(); 734hKey.Dispose(); 754hKey.Dispose(); 991hKey.Dispose(); 1295hKey?.Dispose(); 1296hHash?.Dispose(); 1361hPubKey?.Dispose(); 1380hHash.Dispose(); 1417hHash?.Dispose();
System\Security\Cryptography\ChaCha20Poly1305.Windows.cs (1)
44_keyHandle.Dispose();
System\Security\Cryptography\CngKey.Create.cs (2)
73keyHandle?.Dispose(); 74providerHandle.Dispose();
System\Security\Cryptography\CngKey.cs (2)
28_providerHandle?.Dispose(); 29_keyHandle?.Dispose();
System\Security\Cryptography\CngKey.Exists.cs (1)
52keyHandle?.Dispose();
System\Security\Cryptography\CngKey.Import.cs (6)
92keyHandle.Dispose(); 93providerHandle.Dispose(); 143providerHandle.Dispose(); 144keyHandle.Dispose(); 162keyHandle?.Dispose(); 163providerHandle.Dispose();
System\Security\Cryptography\CngKey.Open.cs (2)
43keyHandle.Dispose(); 44providerHandle.Dispose();
System\Security\Cryptography\CngKey.OpenHandle.cs (2)
75providerHandle?.Dispose(); 76keyHandle.Dispose();
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (5)
131keyHandle?.Dispose(); 132current.Dispose(); 180current?.Dispose(); 279_safeKeyHandle.Dispose(); 284_safeProvHandle.Dispose();
System\Security\Cryptography\HashProviderCng.cs (4)
43_hHash.Dispose(); 133_hHash.Dispose(); 163hHash.Dispose(); 168previousHash?.Dispose();
System\Security\Cryptography\HashProviderDispenser.Windows.cs (1)
308hHash.Dispose();
System\Security\Cryptography\HKDF.Windows.cs (2)
108handle.Dispose(); 235keyHandle?.Dispose();
System\Security\Cryptography\LiteHash.Windows.cs (9)
66hashHandle.Dispose(); 81hashHandle.Dispose(); 162_hashHandle.Dispose(); 202hashHandle.Dispose(); 300_hashHandle.Dispose(); 336hashHandle.Dispose(); 374_hashHandle.Dispose(); 409hashHandle.Dispose(); 447_hashHandle.Dispose();
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (2)
116pbkdf2AlgorithmHandle.Dispose(); 143keyHandle.Dispose();
System\Security\Cryptography\RSABCrypt.cs (2)
34_key?.Dispose(); 70oldKey?.Dispose();
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (5)
117keyHandle?.Dispose(); 118current.Dispose(); 166current?.Dispose(); 285_safeKeyHandle.Dispose(); 290_safeProvHandle.Dispose();
System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (4)
135_key.Dispose(); 154key.Dispose(); 245hAlgorithm.Dispose(); 264hAlgorithm.Dispose();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (3)
28safeCertContextHandle.Dispose(); 171certChainContext?.Dispose(); 480certContext.Dispose();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (5)
72pCertContext?.Dispose(); 115hCertStore?.Dispose(); 116hCryptMsg?.Dispose(); 117pCertContext?.Dispose(); 153pCertContext.Dispose();
System\Security\Cryptography\X509Certificates\ChainPal.Windows.BuildChain.cs (1)
70chain.Dispose();
System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs (2)
29certChainHandle?.Dispose(); 125chain.Dispose();
System\Security\Cryptography\X509Certificates\FindPal.Windows.cs (1)
403findResults.Dispose();
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (3)
25certStoreHandle?.Dispose(); 71enumCertContext.Dispose(); 84certStore.Dispose();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (2)
49pCertContext.Dispose(); 73pCertContext.Dispose();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (5)
55certStore.Dispose(); 61certStore.Dispose(); 137certStore.Dispose(); 187certStore.Dispose(); 200certStore.Dispose();
System\Security\Cryptography\X509Certificates\WindowsInterop.crypt32.cs (3)
77pCertContext.Dispose(); 135chainEngineHandle.Dispose(); 155pCertContext.Dispose();
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Windows.cs (4)
120bestCert?.Dispose(); 203singleContext.Dispose(); 213singleContext.Dispose(); 273storeHandle.Dispose();
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
146bCryptKeyHandle.Dispose();
System.Security.Cryptography.Pkcs (8)
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.cs (1)
26_hCryptMsg.Dispose();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decode.cs (1)
72hCryptMsg?.Dispose();
Internal\Cryptography\Pal\Windows\HeapBlockRetainer.cs (1)
76h.Dispose();
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
62pvData.Dispose();
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
124hCryptMsg?.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\SafeProvHandle.cs (1)
113hIgnoredProv.Dispose();
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptEncodeDecodeWrappers.cs (1)
40sh.Dispose();
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
System.Security.Principal.Windows (27)
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\Interop.OpenThreadToken_SafeAccessTokenHandle.cs (1)
33tokenHandle.Dispose();
System\Security\Principal\NTAccount.cs (3)
343LsaHandle?.Dispose(); 344ReferencedDomainsPtr?.Dispose(); 345SidsPtr?.Dispose();
System\Security\Principal\SID.cs (3)
1087LsaHandle?.Dispose(); 1088ReferencedDomainsPtr?.Dispose(); 1089NamesPtr?.Dispose();
System\Security\Principal\Win32.cs (1)
32policyHandle.Dispose();
System\Security\Principal\WindowsIdentity.cs (18)
207profileBuffer.Dispose(); 216accessTokenHandle.Dispose(); 221accessTokenHandle.Dispose(); 405pLogonSessionData?.Dispose(); 504token.Dispose(); 733_safeTokenHandle.Dispose(); 758previousToken?.Dispose(); 768previousToken.Dispose(); 814safeTokenHandle?.Dispose(); 866safeTokenHandle.Dispose(); 924safeLocalAllocHandle.Dispose(); 944safeLocalAllocHandle.Dispose(); 958safeLocalAllocHandle.Dispose(); 1145safeAllocHandle?.Dispose(); 1146safeAllocHandlePrimaryGroup?.Dispose(); 1183safeAllocHandle?.Dispose(); 1235safeAllocHandle?.Dispose(); 1324safeAllocHandle?.Dispose();
System\Security\Principal\WindowsPrincipal.cs (1)
178token.Dispose();
System.ServiceProcess.ServiceController (3)
System\ServiceProcess\ServiceController.cs (3)
472_serviceManagerHandle.Dispose(); 639databaseHandle.Dispose(); 690serviceHandle.Dispose();
System.Speech (2)
Internal\ObjectToken\RegistryDataKey.cs (1)
77regHandle?.Dispose();
Internal\StreamMarshaler.cs (1)
21_safeHMem.Dispose();
System.Threading.AccessControl (7)
System\Threading\EventWaitHandleAcl.cs (2)
138existingHandle.Dispose(); 162old.Dispose();
System\Threading\MutexAcl.cs (2)
129existingHandle.Dispose(); 153old.Dispose();
System\Threading\SemaphoreAcl.cs (3)
66handle.Dispose(); 144handle.Dispose(); 167old.Dispose();
System.Windows.Extensions (4)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHandleCache.cs (1)
38newHandle.Dispose();
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (2)
118safeCertStoreHandle?.Dispose(); 168safeCertContextHandle?.Dispose();
System\Security\Cryptography\X509Certificates\X509Utils.cs (1)
37safeCertStoreHandle?.Dispose();
UIAutomationClient (2)
MS\Internal\Automation\ClientEventManager.cs (2)
174ec.EventHandle.Dispose(); // Calls UiaCoreApi.UiaRemoveEvent 307ec.EventHandle.Dispose(); // Calls RemoveEvent
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
34_hTheme.Dispose();
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
535lpSecurityDescriptor.Dispose();