144 references to Free
aspire (2)
Processes\WindowsProcessInterop.cs (2)
493pinnedJobHandles.Free(); 501pinnedHandles.Free();
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
681pin.Value.Free();
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
681pin.Value.Free();
libmscordaccore_universal (1)
Entrypoints.cs (1)
164h.Free();
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\ResponseBody.cs (1)
298pin.Free();
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.cs (1)
862_thisHandle.Free();
Core\IISHttpServer.cs (1)
144_httpServerHandle.Free();
Core\IO\WebSocketsAsyncIOEngine.Read.cs (1)
83_thisHandle.Free();
Core\IO\WebSocketsAsyncIOEngine.Write.cs (1)
47_thisHandle.Free();
Microsoft.Diagnostics.DataContractReader.Legacy (22)
ClrDataMethodDefinition.cs (2)
293gcHandle.Free(); 578gcHandle.Free();
ClrDataMethodInstance.cs (1)
692gcHandle.Free();
ClrDataModule.cs (1)
460gcHandle.Free();
ClrDataValue.cs (1)
863gcHandle.Free();
Dbi\DacDbiImpl.cs (7)
839dacHandle.Free(); 1057dacHandle.Free(); 1860gcHandle.Free(); 2434dacHandle.Free(); 3363dacHandle.Free(); 4968gcHandle.Free(); 5279gcHandle.Free();
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
147dacHandle.Free();
MetaDataImportImpl.cs (1)
122handle.Free();
NativeStringHolder.cs (1)
64_delegateHandle.Free();
SOSDacImpl.cs (3)
4829expectedHandle.Free(); 4984GCHandle.FromIntPtr((nint)tokenDebug).Free(); 5045expectedElementsHandle.Free();
SOSDacImpl.IXCLRDataProcess.cs (4)
537gcHandle.Free(); 725gcHandle.Free(); 1113gcHandle.Free(); 1774gcHandle.Free();
Microsoft.ML.LightGbm (2)
WrappedLightGbmDataset.cs (2)
79gcValues[i].Free(); 81gcIndices[i].Free();
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
351GcHandle.Free(); 810stateGCHandle.Free();
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
1055featureBufferHandle.Free(); 1056labelBufferHandle.Free();
Microsoft.NET.StringTools (1)
WeakStringCache.cs (1)
91weakHandle.Free();
Microsoft.Private.Windows.Core (5)
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
34gcHandle.Free();
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (1)
30gcHandle.Free();
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (1)
39gcHandle.Free();
Windows\Win32\PInvokeCore.EnumWindows.cs (1)
33gcHandle.Free();
Windows\Win32\System\Com\Lifetime.cs (1)
31GCHandle.FromIntPtr((nint)lifetime->_handle).Free();
Mono.Cecil.Pdb (1)
Mono.Cecil.Pdb\SymWriter.cs (1)
160 handle.Free ();
PresentationCore (5)
MS\Internal\FontCache\FontSource.cs (1)
456_memoryHandle.Free();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (2)
229gcHandle.Free(); 328gcHandle.Free();
System\Windows\Media\EventProxy.cs (1)
31((System.Runtime.InteropServices.GCHandle)(pEPD.m_handle)).Free();
System\Windows\Media\StreamAsIStream.cs (1)
55((System.Runtime.InteropServices.GCHandle)(pSD.m_handle)).Free();
PresentationFramework (3)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
20handle.Free();
System\Windows\Documents\WinEventHandler.cs (1)
75_gchThis.Free();
System\Windows\Standard\MessageWindow.cs (1)
78gcHandle.Free();
System.Data.OleDb (1)
ColumnBinding.cs (1)
213_pinnedBuffer.Free();
System.Diagnostics.EventLog (4)
System\Diagnostics\EventLog.cs (2)
933handles[i].Free(); 935stringsRoot.Free();
System\Diagnostics\EventLogInternal.cs (2)
1405stringHandles[i].Free(); 1407stringsRootHandle.Free();
System.DirectoryServices (1)
Interop\AdsValueHelper2.cs (1)
76_pinnedHandle.Free();
System.Drawing.Common (1)
System\Drawing\Font.cs (1)
295handle.Free();
System.Net.Http.WinHttpHandler (6)
System\Net\Http\WinHttpHandler.cs (1)
1322pinnedHandle.Free();
System\Net\Http\WinHttpRequestState.cs (5)
168_cachedReceivePinnedBuffer.Free(); 181_cachedSendPinnedBuffer.Free(); 211_cachedReceivePinnedBuffer.Free(); 217_cachedSendPinnedBuffer.Free(); 223_operationHandle.Free();
System.Net.Quic (11)
System\Net\Quic\Internal\MsQuicSafeHandle.cs (1)
133_context.Free();
System\Net\Quic\Internal\ResettableValueTaskSource.cs (2)
212_keepAlive.Free(); 327((GCHandle)state!).Free();
System\Net\Quic\Internal\ValueTaskSource.cs (1)
137_keepAlive.Free();
System\Net\Quic\QuicConnection.cs (3)
333context.Free(); 365context.Free(); 584keepObject.Free();
System\Net\Quic\QuicListener.cs (2)
137context.Free(); 202keepObject.Free();
System\Net\Quic\QuicStream.cs (2)
216context.Free(); 255context.Free();
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
247((GCHandle)_thisHandle).Free();
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
158_gch.Free();
System.Net.Sockets (3)
System\Net\Sockets\SocketPal.Unix.cs (3)
343handles[i].Free(); 469handles[i].Free(); 621handles[i].Free();
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\MemoryHandle.cs (1)
46_handle.Free();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
622rgGCHandle[i].Free();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
728pPins[i].Free();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
45_pinningHandle.Free();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
732_nativeObjectWrapperWeakHandle.Free();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (1)
211GCHandleRef(pNativeOverlapped, i).Free();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.HandleManager.Unix.cs (1)
82GCHandle.FromIntPtr(handle).Free();
System.Private.Windows.Core (6)
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
34gcHandle.Free();
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (1)
30gcHandle.Free();
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (1)
39gcHandle.Free();
Windows\Win32\PInvokeCore.EnumWindows.cs (1)
33gcHandle.Free();
Windows\Win32\System\Com\Lifetime.cs (1)
31GCHandle.FromIntPtr((nint)lifetime->_handle).Free();
Windows\Win32\System\Variant\VARIANT.cs (1)
437pin.Free();
System.Reflection.Metadata (2)
System\Reflection\Internal\Utilities\PinnedObject.cs (1)
45_handle.Free();
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
62blobPair.Value.Handle.Free();
System.Resources.Extensions (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
45_pinningHandle.Free();
System.Runtime.Caching (1)
System\Runtime\Caching\SRef.cs (1)
70_handle.Free();
System.Runtime.InteropServices.JavaScript (5)
System\Runtime\InteropServices\JavaScript\JSFunctionBinding.cs (1)
358holderHandle.Free();
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (4)
398handle.Free(); 440handle.Free(); 562gcHandle.Free(); 570((GCHandle)holder.GCHandle).Free();
System.Security.Cryptography (1)
System\Security\Cryptography\CryptoStream.cs (1)
737pinHandle.Free();
System.Security.Principal.Windows (1)
System\Security\Principal\SID.cs (1)
1083HandleArray[i].Free();
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceController.cs (1)
909argPtrsHandle.Free();
System.Speech (23)
Internal\Synthesis\AudioBase.cs (4)
57gc.Free(); 395gc.Free(); 407gc.Free(); 415gc.Free();
Internal\Synthesis\ConvertTextFrag.cs (4)
135sapiFrag.gcPhoneme.Free(); 140sapiFrag.gcSayAsCategory.Free(); 144sapiFrag.gcText.Free(); 145fragment.Free();
Internal\Synthesis\TTSEngineProxy.cs (2)
69gc.Free(); 169gc.Free();
Internal\Synthesis\TTSVoice.cs (1)
108targetFormat.Free();
Internal\Synthesis\WaveHeader.cs (2)
46_gcHandleWaveHdr.Free(); 59_gcHandle.Free();
Recognition\RecognizerBase.cs (2)
1644gcHandle.Free(); 1918memHandle.Free();
Result\RecognitionResult.cs (4)
190gc.Free(); 337gc.Free(); 404gc.Free(); 491gc.Free();
Result\RecognizedPhrase.cs (4)
210gc.Free(); 307gc.Free(); 434gc.Free(); 802gc.Free();
System.Windows.Forms (7)
System\Windows\Forms\Components\Timer.cs (1)
122_timerRoot.Free();
System\Windows\Forms\Control.ControlNativeWindow.cs (1)
50_rootRef.Free();
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
478handle.Free();
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
691instanceHandle.Free();
System\Windows\Forms\NativeWindow.cs (2)
264oldRoot.Free(); 730root.Free();
System\Windows\Forms\NotifyIcon.NotifyIconNativeWindow.cs (1)
50_rootRef.Free();
System.Windows.Forms.Primitives (1)
Windows\Win32\PInvoke.SendMessageCallback.cs (1)
30gcHandle.Free();
UIAutomationClient (3)
MS\Internal\Automation\EventListenerClientSide.cs (1)
55_gch.Free();
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
1582gch.Free();
MS\Internal\Automation\WinEventWrap.cs (1)
68_gchThis.Free();
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\Misc.cs (1)
351gch.Free();
MS\Internal\AutomationProxies\MSAAWinEventWrap.cs (1)
69_gchThis.Free();
MS\Internal\AutomationProxies\WinEventTracker.cs (1)
184hp._procHookHandle.Free ();