Browse Source

trunk->1.0: merged [216] avoid crash when error compiling script

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.0@239 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.0
Xuefer 15 years ago
parent
commit
6d00cce4ff
  1. 4
      xcache.c

4
xcache.c

@ -756,6 +756,10 @@ err_bailout:
xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
sandbox.tmp_open_files->dtor = NULL;
}
else if (!op_array) {
/* failed to compile free it, no install */
xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
}
else {
xc_sandbox_free(&sandbox, 1 TSRMLS_CC);
}

Loading…
Cancel
Save