Commit 45eeeb00 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winedbg: Free snapshot handle in error path (Coverity).

parent 2bc8e076
......@@ -509,7 +509,11 @@ void info_win32_processes(void)
dp.count = 0;
dp.alloc = 16;
dp.entries = HeapAlloc(GetProcessHeap(), 0, sizeof(*dp.entries) * dp.alloc);
if (!dp.entries) return;
if (!dp.entries)
{
CloseHandle(snap);
return;
}
dp.entries[dp.count].proc.dwSize = sizeof(dp.entries[dp.count].proc);
ok = Process32First(snap, &dp.entries[dp.count].proc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment