From 466870e2b07be801faa8e0ccf81aff0455932b45 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Fri, 14 Oct 2016 12:24:28 +0200 Subject: [PATCH] Fix memory leak when compiling files in phpdbg --- sapi/phpdbg/phpdbg_list.c | 4 ++-- 1 file 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; } } -- 2.50.1