Skip to content

Commit 9b5a263

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
2 parents f6de748 + bd67933 commit 9b5a263

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ PHP NEWS
88

99
- FPM:
1010
. Fixed zlog message prepend, free on incorrect address. (Heiko Weber)
11+
. Fixed possible double free on configuration loading failure. (Heiko Weber).
1112

1213
- GD:
1314
. Fixed bug GH-8848 (imagecopyresized() error refers to the wrong argument).

sapi/fpm/fpm/fpm_conf.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,10 @@ int fpm_conf_load_ini_file(char *filename) /* {{{ */
16301630
tmp = zend_parse_ini_string(buf, 1, ZEND_INI_SCANNER_NORMAL, (zend_ini_parser_cb_t)fpm_conf_ini_parser, &error);
16311631
ini_filename = filename;
16321632
if (error || tmp == FAILURE) {
1633-
if (ini_include) free(ini_include);
1633+
if (ini_include) {
1634+
free(ini_include);
1635+
ini_include = NULL;
1636+
}
16341637
ini_recursion--;
16351638
close(fd);
16361639
free(buf);

0 commit comments

Comments
 (0)