summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_list.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-24 10:44:40 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-24 10:44:40 +0200
commit173ebe4c44c5da61e191dfcef95ea5a13244604b (patch)
tree65f5e95fbf803eb9d34616e79a39b05aa283819c /sapi/phpdbg/phpdbg_list.c
parentdc6341eb7899c62f3de77be6e3836c9ba3b07b14 (diff)
parentd9680272c78453a832ef02f914efa13c2545eb19 (diff)
downloadphp-git-173ebe4c44c5da61e191dfcef95ea5a13244604b.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r--sapi/phpdbg/phpdbg_list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index 3556156c0b..901fd0bb1c 100644
--- a/sapi/phpdbg/phpdbg_list.c
+++ b/sapi/phpdbg/phpdbg_list.c
@@ -294,6 +294,10 @@ zend_op_array *phpdbg_init_compile_file(zend_file_handle *file, int type) {
zend_string_release(file->opened_path);
file->opened_path = zend_string_init(filename, strlen(filename), 0);
} else {
+ if (file->free_filename) {
+ efree((char *) file->filename);
+ }
+ file->free_filename = 0;
file->filename = filename;
}
}