From 0f20e113c2fd9c5e96beb2723ba8b5c8eb43b182 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Tue, 3 May 2016 13:36:21 +0200 Subject: [PATCH] Fix potential double free with phpdbg --- sapi/phpdbg/phpdbg_list.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.0