dxdiagn: Plug memory leak.

This commit is contained in:
Joris Huizer 2011-04-05 16:01:04 +02:00 committed by Alexandre Julliard
parent b0696b8b4a
commit 8c6c2261b3
1 changed files with 4 additions and 0 deletions

View File

@ -433,8 +433,12 @@ static BOOL is_netmeeting_running(void)
{
if (get_process_name_from_pid(pid_list[i], process_name, sizeof(process_name)/sizeof(WCHAR)) &&
!lstrcmpW(conf_exe, process_name))
{
HeapFree(GetProcessHeap(), 0, pid_list);
return TRUE;
}
}
HeapFree(GetProcessHeap(), 0, pid_list);
}
return FALSE;