proper clean-up in case of bad input

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4371 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-11-05 13:50:24 +00:00
parent 373eac3da8
commit 230a418822

View file

@ -165,8 +165,11 @@ params:
if (!pExec[0])
{
lstrcpy(szRet, "error");
goto done;
pushstring("error");
*(pExec-2) = '\0'; // skip space and quote
DeleteFile(executor);
GlobalFree(g_exec);
return;
}
{