diff options
author | Joe Watkins <krakjoe@php.net> | 2016-04-12 13:40:03 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2016-04-12 13:40:03 +0100 |
commit | b04125da85292147a50eb9524e88fee9ffef5c1d (patch) | |
tree | 3d7ef51ffc8c0b35be3ac5931c004184b6f3d4bd /sapi/phpdbg/phpdbg_list.c | |
parent | d62ab27042b18ee91a9d329aa3879d5158e29282 (diff) | |
download | php-git-b04125da85292147a50eb9524e88fee9ffef5c1d.tar.gz |
phpdbg: close file handles
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |