summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-04-15 17:02:42 +0000
committerAndi Gutmans <andi@php.net>2000-04-15 17:02:42 +0000
commit5097f642567a939da02544dcc76c89c58786fca8 (patch)
treef720c1e2cdf2cd6378bd449e7b278c772ab27145
parenta1608562aeaaf67ed73a7b2ef6cf4668a98a54ae (diff)
downloadphp-git-5097f642567a939da02544dcc76c89c58786fca8.tar.gz
- Fix leak in require_once()
-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);