projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac99e5
)
- opened_path should not be freed here as the zend_file_dtor() takes care
author
Andi Gutmans
<andi@php.net>
Tue, 7 Dec 1999 16:00:39 +0000
(16:00 +0000)
committer
Andi Gutmans
<andi@php.net>
Tue, 7 Dec 1999 16:00:39 +0000
(16:00 +0000)
of it. This doesn't fix the bug report for the crash of highlight_file()
though.
Zend/zend-scanner.l
patch
|
blob
|
history
diff --git
a/Zend/zend-scanner.l
b/Zend/zend-scanner.l
index 79ba992ff8416c17b6fced3e39fcfc34bfaf0969..a4edba40a0c8fcd78341032b31b43dedd2acef19 100644
(file)
--- 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);