From 21ba41afb92803166b79ccd8904eb140da702ecb Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 5 Nov 2005 13:51:57 +0000 Subject: [PATCH] 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 --- Contrib/nsExec/nsexec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Contrib/nsExec/nsexec.c b/Contrib/nsExec/nsexec.c index b7df55d0..bbdf332f 100644 --- a/Contrib/nsExec/nsexec.c +++ b/Contrib/nsExec/nsexec.c @@ -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;