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:
parent
614ad0c8c2
commit
cee34cb141
|
@ -1423,7 +1423,10 @@ __int32 WINAPI _CorExeMain(void)
|
|||
|
||||
filenameA = WtoA(filename);
|
||||
if (!filenameA)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, argv);
|
||||
return -1;
|
||||
}
|
||||
|
||||
FixupVTable(GetModuleHandleW(NULL));
|
||||
|
||||
|
|
Loading…
Reference in New Issue