proper clean-up in case of path detection failure

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4372 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-11-05 13:51:57 +00:00
parent 230a418822
commit 21ba41afb9

View file

@ -109,8 +109,9 @@ void ExecScript(int log) {
if (p == meDLLPath) if (p == meDLLPath)
{ {
// bad path // bad path
lstrcpy(szRet, "error"); pushstring("error");
goto done; GlobalFree(g_exec);
return;
} }
*p = 0; *p = 0;