]> granicus.if.org Git - php/commitdiff
phpdbg: close file handles
authorJoe Watkins <krakjoe@php.net>
Tue, 12 Apr 2016 12:40:03 +0000 (13:40 +0100)
committerJoe Watkins <krakjoe@php.net>
Tue, 12 Apr 2016 12:40:03 +0000 (13:40 +0100)
sapi/phpdbg/phpdbg_list.c

index 93d741c2a6c144389d2014bf70137cbb2d6c1ef5..e9cf1bc0b8618586aea452887b68df43220b9b64 100644 (file)
@@ -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;
 }