Fix memory leak in process enumeration

This commit is contained in:
0xjs
2025-08-18 10:52:36 +02:00
parent e5adc25972
commit f4af25420b
+1
View File
@@ -135,6 +135,7 @@ BOOL EnumerateEDRProcessesPID(OUT PPROCESS_ENTRY* ppProcessList, OUT DWORD* pdwP
);
if (STATUS != 0x0) {
error("NtQuerySystemInformation - failed with error: 0x%0.8X", STATUS);
HeapFree(hGetProcessHeap, 0, pSystemProcInfo);
bSTATE = FALSE;
goto _cleanUp;
}