Browse Source

avoid crash when error compiling

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@216 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
7e476dc403
  1. 4
      xcache.c

4
xcache.c

@ -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