Permalink
Browse files

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

# Patch suggestion by nw at softwarekombinat dot de
  • Loading branch information...
1 parent 1775e98 commit 2a2d49b9470d31da8fbcaeaf047b72a1e41f526e Ilia Alshanetsky committed Sep 17, 2004
Showing with 2 additions and 0 deletions.
  1. +2 −0 main/php_ini.c
View
@@ -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;
}

0 comments on commit 2a2d49b

Please sign in to comment.