diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c index 86eb7597105..eed96da2cdc 100644 --- a/dlls/mscoree/corruntimehost.c +++ b/dlls/mscoree/corruntimehost.c @@ -1423,7 +1423,10 @@ __int32 WINAPI _CorExeMain(void) filenameA = WtoA(filename); if (!filenameA) + { + HeapFree(GetProcessHeap(), 0, argv); return -1; + } FixupVTable(GetModuleHandleW(NULL));