1
0
Fork 0

avoid crash when error compiling

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@216 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 17 years ago
parent 72a34e48f6
commit 7e476dc403

@ -1042,6 +1042,10 @@ err_bailout:
/* free it, no install. restore now */
xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
}
else if (!op_array) {
/* failed to compile free it, no install */
xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
}
else {
CG(active_op_array) = op_array;
xc_sandbox_free(&sandbox, 1 TSRMLS_CC);

Loading…
Cancel
Save