From b04125da85292147a50eb9524e88fee9ffef5c1d Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Tue, 12 Apr 2016 13:40:03 +0100 Subject: phpdbg: close file handles --- sapi/phpdbg/phpdbg_list.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sapi/phpdbg/phpdbg_list.c') diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 93d741c2a6..e9cf1bc0b8 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -242,6 +242,7 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) { char resolved_path_buf[MAXPATHLEN]; if (zend_stream_fixup(file, &bufptr, &data.len) == FAILURE) { + zend_file_handle_dtor(file); return NULL; } @@ -288,6 +289,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); return ret; } -- cgit v1.2.1