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;