Shutdown library properly on error.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-09-04 09:13:28 +02:00
parent 1daf17bcd4
commit 03e452ea7b
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 0 deletions

View File

@ -5633,6 +5633,8 @@ PH7_PRIVATE sxi32 PH7_GenCompileError(ph7_gen_state *pGen, sxi32 nErrType, sxu32
pGen->xErr(SyBlobData(pWorker), SyBlobLength(pWorker), pGen->pErrData);
}
if(nErrType == E_ERROR) {
/* Shutdown library and abort script execution */
ph7_lib_shutdown();
exit(255);
}
return rc;