Fixed bug #30050 (Possible crash inside php_shutdown_config()).

# Patch suggestion by nw at softwarekombinat dot de
This commit is contained in:
Ilia Alshanetsky 2004-09-17 02:48:41 +00:00
parent 1775e980ea
commit 2a2d49b947

View file

@ -534,9 +534,11 @@ int php_shutdown_config(void)
zend_hash_destroy(&configuration_hash);
if (php_ini_opened_path) {
free(php_ini_opened_path);
php_ini_opened_path = NULL;
}
if (php_ini_scanned_files) {
free(php_ini_scanned_files);
php_ini_scanned_files = NULL;
}
return SUCCESS;
}