43 references to FreeHGlobal
Microsoft.AspNetCore.Cryptography.Internal (1)
SafeHandles\LocalAllocHandle.cs (1)
21Marshal.FreeHGlobal(handle); // actually calls LocalFree
Microsoft.AspNetCore.DataProtection (2)
Cng\DpapiSecretSerializerHelper.cs (2)
113Marshal.FreeHGlobal((IntPtr)dataOut.pbData); 254Marshal.FreeHGlobal((IntPtr)dataOut.pbData);
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\RequestQueue.cs (1)
129Marshal.FreeHGlobal(pSecurityDescriptor.Value);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
ProcessTracker.cs (1)
48Marshal.FreeHGlobal(extendedInfoPtr);
Microsoft.Build.Tasks.UnitTests (2)
MockUnmanagedMemoryHelper.cs (2)
70Marshal.FreeHGlobal(handle); 78Marshal.FreeHGlobal(_dependentAllocations[handle][0]);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Windows\Network\WindowsTcpStateInfo.cs (5)
120Marshal.FreeHGlobal(tcpTable); 126Marshal.FreeHGlobal(tcpTable); 133Marshal.FreeHGlobal(tcpTable); 173Marshal.FreeHGlobal(tcpTable); 198Marshal.FreeHGlobal(tcpTable);
Microsoft.VisualStudio.LanguageServices (1)
Preview\PreviewEngine.cs (1)
290Marshal.FreeHGlobal(newTextPtr);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
ProjectSystemShim\CSharpProjectShim.cs (2)
85Marshal.FreeHGlobal(_warningNumberArrayPointer); 92Marshal.FreeHGlobal(@class);
ProjectSystemShim\CSharpProjectShim.ICSharpProjectSite.cs (1)
158Marshal.FreeHGlobal(@class);
PresentationFramework (2)
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
683Marshal.FreeHGlobal(unmanagedBuffer);
System\Windows\Documents\NLGSpellerInterop.cs (1)
258Marshal.FreeHGlobal(inputArray);
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
479Marshal.FreeHGlobal(_ptrToDsObjectNames);
System.Data.Odbc (1)
Common\System\Data\Common\SafeNativeMethods.cs (1)
19Marshal.FreeHGlobal(ptr);
System.Drawing.Common (5)
System\Drawing\Image.cs (4)
282Marshal.FreeHGlobal((nint)nativeParameters); 323Marshal.FreeHGlobal((nint)nativeParameters); 352Marshal.FreeHGlobal((nint)nativeParameters); 384Marshal.FreeHGlobal((nint)nativeParameters);
System\Drawing\Imaging\EncoderParameter.cs (1)
52Marshal.FreeHGlobal(_parameterValue);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
135Marshal.FreeHGlobal(globalMemory);
System.Net.Security (1)
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (1)
63Marshal.FreeHGlobal(handle);
System.Private.CoreLib (6)
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
69Marshal.FreeHGlobal(nativeMsgPtr);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
1207FreeHGlobal(s); 1217FreeHGlobal(s);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
76public static void FreeCoTaskMem(IntPtr ptr) => FreeHGlobal(ptr);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (2)
401Marshal.FreeHGlobal(ptr); 465Marshal.FreeHGlobal(handle);
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\NativeHeapMemoryBlock.cs (1)
49Marshal.FreeHGlobal(ptr);
System.Security.Cryptography.ProtectedData (2)
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
69Marshal.FreeHGlobal(nativeMsgPtr);
System\Security\Cryptography\ProtectedData.cs (1)
405Marshal.FreeHGlobal(outputBlob.pbData);
System.Text.Encoding.CodePages (1)
Microsoft\Win32\SafeHandles\SafeAllocHHandle.cs (1)
28Marshal.FreeHGlobal(handle);
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
4150Marshal.FreeHGlobal(hGlobalColumns); 4228Marshal.FreeHGlobal(hGlobalColumns);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (2)
264private static void FreeConfig(IntPtr ptrToFree) => Marshal.FreeHGlobal(ptrToFree); 1548Marshal.FreeHGlobal(ptrToFree);
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
49Marshal.FreeHGlobal(_hInstance);
System.Windows.Forms.Tests (1)
System\Windows\Forms\MessageTests.cs (1)
207Marshal.FreeHGlobal(ptr);