fixed small memory leak appeared if process-script could not be started

This commit is contained in:
Andrey Prygunkov
2009-01-15 17:45:21 +00:00
parent 7f22f6d2a6
commit 8c4b5c7f6b

View File

@@ -291,6 +291,7 @@ int ScriptController::Execute()
{
error("Could not start %s: error %i", m_szInfoName, dwErrCode);
}
free(szEnvironmentStrings);
return -1;
}
@@ -328,6 +329,7 @@ int ScriptController::Execute()
if (pid == -1)
{
error("Could not start %s: errno %i", m_szInfoName, errno);
free(pEnvironmentStrings);
return -1;
}
else if (pid == 0)