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:
parent
230a418822
commit
21ba41afb9
1 changed files with 3 additions and 2 deletions
|
@ -109,8 +109,9 @@ void ExecScript(int log) {
|
|||
if (p == meDLLPath)
|
||||
{
|
||||
// bad path
|
||||
lstrcpy(szRet, "error");
|
||||
goto done;
|
||||
pushstring("error");
|
||||
GlobalFree(g_exec);
|
||||
return;
|
||||
}
|
||||
|
||||
*p = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue