mscoree: Free argument buffer on error (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-12-22 13:23:22 +03:00 committed by Alexandre Julliard
parent 614ad0c8c2
commit cee34cb141

View File

@ -1423,7 +1423,10 @@ __int32 WINAPI _CorExeMain(void)
filenameA = WtoA(filename); filenameA = WtoA(filename);
if (!filenameA) if (!filenameA)
{
HeapFree(GetProcessHeap(), 0, argv);
return -1; return -1;
}
FixupVTable(GetModuleHandleW(NULL)); FixupVTable(GetModuleHandleW(NULL));