86 references to FreeHGlobal
aspire (1)
Processes\DetachedProcessLauncher.Windows.cs (1)
132Marshal.FreeHGlobal(attrList);
csc (2)
src\Compilers\Shared\BuildServerConnection.cs (2)
460/// <returns>Pointer to environment block that must be freed with <see cref="Marshal.FreeHGlobal"/></returns> 613Marshal.FreeHGlobal(environmentBlockPtr);
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.CodeAnalysis (2)
src\Compilers\Shared\BuildServerConnection.cs (2)
460/// <returns>Pointer to environment block that must be freed with <see cref="Marshal.FreeHGlobal"/></returns> 613Marshal.FreeHGlobal(environmentBlockPtr);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Shared\BuildServerConnection.cs (2)
460/// <returns>Pointer to environment block that must be freed with <see cref="Marshal.FreeHGlobal"/></returns> 613Marshal.FreeHGlobal(environmentBlockPtr);
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.ML.Vision (1)
ImageClassificationTrainer.cs (1)
1546Marshal.FreeHGlobal(data);
Microsoft.VisualStudio.LanguageServices (1)
Preview\PreviewEngine.cs (1)
291Marshal.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);
Replay (2)
src\Compilers\Shared\BuildServerConnection.cs (2)
460/// <returns>Pointer to environment block that must be freed with <see cref="Marshal.FreeHGlobal"/></returns> 613Marshal.FreeHGlobal(environmentBlockPtr);
System.Data.Odbc (1)
Common\System\Data\Common\SafeNativeMethods.cs (1)
19Marshal.FreeHGlobal(ptr);
System.DirectoryServices.Protocols (32)
src\libraries\Common\src\Interop\Interop.Ldap.cs (2)
303Marshal.FreeHGlobal(attribute); 308Marshal.FreeHGlobal(values);
System\DirectoryServices\Protocols\common\BerConverter.cs (4)
448Marshal.FreeHGlobal(berValue.bv_val); 567Marshal.FreeHGlobal(ptr); 569Marshal.FreeHGlobal(berValArray); 577Marshal.FreeHGlobal(managedBerval.bv_val);
System\DirectoryServices\Protocols\Interop\LdapPal.Linux.cs (1)
139Marshal.FreeHGlobal(passwordPtr);
System\DirectoryServices\Protocols\Interop\SafeHandles.cs (1)
22Marshal.FreeHGlobal(handle);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (14)
779Marshal.FreeHGlobal(tempPtr); 782Marshal.FreeHGlobal(serverControlArray); 791Marshal.FreeHGlobal(managedServerControls[i].ldctl_oid); 798Marshal.FreeHGlobal(managedServerControls[i].ldctl_value.bv_val); 812Marshal.FreeHGlobal(tempPtr); 816Marshal.FreeHGlobal(clientControlArray); 825Marshal.FreeHGlobal(managedClientControls[i].ldctl_oid); 832Marshal.FreeHGlobal(managedClientControls[i].ldctl_value.bv_val); 846Marshal.FreeHGlobal(tempPtr); 850Marshal.FreeHGlobal(modArray); 857Marshal.FreeHGlobal(tempPtr); 862Marshal.FreeHGlobal(berValuePtr.bv_val); 872Marshal.FreeHGlobal(tempPtr); 876Marshal.FreeHGlobal(searchAttributes);
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (1)
151Marshal.FreeHGlobal(ptrToDefaults);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (9)
679Marshal.FreeHGlobal(tempPtr); 682Marshal.FreeHGlobal(serverControlArray); 691Marshal.FreeHGlobal(managedServerControls[i].ldctl_oid); 698Marshal.FreeHGlobal(managedServerControls[i].ldctl_value.bv_val); 712Marshal.FreeHGlobal(tempPtr); 716Marshal.FreeHGlobal(clientControlArray); 725Marshal.FreeHGlobal(managedClientControls[i].ldctl_oid); 731Marshal.FreeHGlobal(managedClientControls[i].ldctl_value.bv_val); 864Marshal.FreeHGlobal(inValue);
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)
136Marshal.FreeHGlobal(globalMemory);
System.Net.Security (1)
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (1)
63Marshal.FreeHGlobal(handle);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
1307FreeHGlobal(s); 1317FreeHGlobal(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)
4157Marshal.FreeHGlobal(hGlobalColumns); 4235Marshal.FreeHGlobal(hGlobalColumns);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (2)
263private static void FreeConfig(IntPtr ptrToFree) => Marshal.FreeHGlobal(ptrToFree); 1544Marshal.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);
vbc (2)
src\Compilers\Shared\BuildServerConnection.cs (2)
460/// <returns>Pointer to environment block that must be freed with <see cref="Marshal.FreeHGlobal"/></returns> 613Marshal.FreeHGlobal(environmentBlockPtr);
VBCSCompiler (2)
src\Compilers\Shared\BuildServerConnection.cs (2)
460/// <returns>Pointer to environment block that must be freed with <see cref="Marshal.FreeHGlobal"/></returns> 613Marshal.FreeHGlobal(environmentBlockPtr);