diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-10-14 12:24:28 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-10-14 12:24:28 +0200 |
commit | 466870e2b07be801faa8e0ccf81aff0455932b45 (patch) | |
tree | 0c634b3da03b08f13a59c232f71b2011f38ccecc | |
parent | 428ef5083819328b40357e1de229d5cf740a36e7 (diff) | |
download | php-git-466870e2b07be801faa8e0ccf81aff0455932b45.tar.gz |
Fix memory leak when compiling files in phpdbg
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 87594614e1..b0bb157f08 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -312,8 +312,8 @@ zend_op_array *phpdbg_init_compile_file(zend_file_handle *file, int type) { if (file->free_filename) { efree((char *) file->filename); } - file->free_filename = 1; - file->filename = estrdup(filename); + file->free_filename = 0; + file->filename = filename; } } |