summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-12-07 16:00:39 +0000
committerAndi Gutmans <andi@php.net>1999-12-07 16:00:39 +0000
commite36be38140bbdfaf6ea9f9ee37ee7abe0a128c83 (patch)
tree1ed076b409b6d289abb1bcb649660233dfeea213
parent7ac99e5aa347144bc2dcc7bcaa59500d275fcaf6 (diff)
downloadphp-git-e36be38140bbdfaf6ea9f9ee37ee7abe0a128c83.tar.gz
- opened_path should not be freed here as the zend_file_dtor() takes care
of it. This doesn't fix the bug report for the crash of highlight_file() though.
-rw-r--r--Zend/zend-scanner.l3
1 files changed, 0 insertions, 3 deletions
diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l
index 79ba992ff8..a4edba40a0 100644
--- a/Zend/zend-scanner.l
+++ b/Zend/zend-scanner.l
@@ -566,9 +566,6 @@ int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlight
zend_message_dispatcher(ZMSG_FAILED_HIGHLIGHT_FOPEN, filename);
return FAILURE;
}
- if (file_handle.opened_path) {
- free(file_handle.opened_path);
- }
zend_highlight(syntax_highlighter_ini);
zend_close_file_handle(&file_handle CLS_CC);
restore_lexical_state(&original_lex_state CLS_CC);