Skip to content

Commit e36be38

Browse files
author
Andi Gutmans
committed
- 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.
1 parent 7ac99e5 commit e36be38

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Zend/zend-scanner.l

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,6 @@ int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlight
566566
zend_message_dispatcher(ZMSG_FAILED_HIGHLIGHT_FOPEN, filename);
567567
return FAILURE;
568568
}
569-
if (file_handle.opened_path) {
570-
free(file_handle.opened_path);
571-
}
572569
zend_highlight(syntax_highlighter_ini);
573570
zend_close_file_handle(&file_handle CLS_CC);
574571
restore_lexical_state(&original_lex_state CLS_CC);

0 commit comments

Comments
 (0)