com php-src: phpdbg: close file handles: sapi/phpdbg/phpdbg_l ist.c
| From: | Joe Watkins | Date: | Tue, 12 Apr 2016 12:40:03 +0000 |
| Subject: | com php-src: phpdbg: close file handles: sapi/phpdbg/phpdbg_l ist.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91699@lists.php.net to get a copy of this message | ||
Commit: b04125da85292147a50eb9524e88fee9ffef5c1d
Author: Joe Watkins <krakjoe@php.net> Tue, 12 Apr 2016 13:40:03 +0100
Parents: d62ab27042b18ee91a9d329aa3879d5158e29282
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b04125da85292147a50eb9524e88fee9ffef5c1d
Log:
phpdbg: close file handles
Changed paths:
M sapi/phpdbg/phpdbg_list.c
Diff:
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index 93d741c..e9cf1bc 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;
}