From: Bob Weinand Date: Fri, 14 Oct 2016 10:24:28 +0000 (+0200) Subject: Fix memory leak when compiling files in phpdbg X-Git-Tag: php-7.1.0RC4~18^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=466870e2b07be801faa8e0ccf81aff0455932b45;p=php Fix memory leak when compiling files in phpdbg --- 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; } }