summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend-scanner.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l
index 0d4c67f00f..78c4497f54 100644
--- a/Zend/zend-scanner.l
+++ b/Zend/zend-scanner.l
@@ -585,6 +585,7 @@ int require_file(zend_file_handle *file_handle, zend_bool unique CLS_DC)
pfh->type = ZEND_HANDLE_FILENAME;
if (pfh->filename) {
pfh->filename = estrdup(pfh->filename);
+ pfh->free_filename = 1;
}
if (pfh->opened_path) {
pfh->opened_path = strdup(pfh->opened_path);