[php-src] Issue #7883: PHP CLI segafult when INI file is not readable
| From: | remicollet | Date: | Mon, 17 Jan 2022 09:17:42 +0000 |
| Subject: | [php-src] Issue #7883: PHP CLI segafult when INI file is not readable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239053@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7883
Comment Author: remicollet
Related to https://github.com/php/php-src/commit/c732ab400af
```
@@ -693,6 +692,7 @@ int php_init_config(void)
zend_llist_add_element(&scanned_ini_list, &p);
}
}
+ zend_destroy_file_handle(&fh);
}
}
free(namelist[i]);
```
In previous version, fh was not freed, it is not freed, even if null.