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:
parent
373eac3da8
commit
230a418822
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue