Skip to content

Commit

Permalink
- Fix leak in case of a syntax error
Browse files Browse the repository at this point in the history
- Be more verbose in lint mode
  • Loading branch information
zsuraski committed Jun 21, 2001
1 parent d6d59a9 commit a13252b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/main.c
Expand Up @@ -1330,11 +1330,11 @@ PHPAPI int php_lint_script(zend_file_handle *file CLS_DC ELS_DC PLS_DC)
}

op_array = zend_compile_file(file, ZEND_INCLUDE CLS_CC);
zend_destroy_file_handle(file CLS_CC);

if (op_array) {
destroy_op_array(op_array);
efree(op_array);
zend_destroy_file_handle(file CLS_CC);
return SUCCESS;
} else {
return FAILURE;
Expand Down

0 comments on commit a13252b

Please sign in to comment.