From: Joe Watkins Date: Tue, 12 Apr 2016 12:40:03 +0000 (+0100) Subject: phpdbg: close file handles X-Git-Tag: php-7.0.7RC1~116^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b04125da85292147a50eb9524e88fee9ffef5c1d;p=php phpdbg: close file handles --- 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; }