From: Bob Weinand Date: Tue, 3 May 2016 11:36:21 +0000 (+0200) Subject: Fix potential double free with phpdbg X-Git-Tag: php-7.1.0alpha1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f20e11;p=php Fix potential double free with phpdbg --- diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 2e97ad4b73..e31fe199f2 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -291,6 +291,7 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) { fake.opened_path = NULL; zend_file_handle_dtor(&fake); zend_file_handle_dtor(file); + file->type = -1; return ret; }