]> granicus.if.org Git - php/commitdiff
MFH: - Fix possible crash (PR#26223). Leaks remain.
authorfoobar <sniper@php.net>
Sat, 8 Jan 2005 20:45:43 +0000 (20:45 +0000)
committerfoobar <sniper@php.net>
Sat, 8 Jan 2005 20:45:43 +0000 (20:45 +0000)
ext/standard/basic_functions.c

index fec610086d4526d66e487c5da0cb107733fdcccd..7fbdab2150a77044b9e00caa060318ce2485b251 100644 (file)
@@ -2171,6 +2171,7 @@ void php_call_shutdown_functions(void)
                        memcpy(&EG(bailout), &orig_bailout, sizeof(jmp_buf));
                        zend_hash_destroy(BG(user_shutdown_function_names));
                        FREE_HASHTABLE(BG(user_shutdown_function_names));
+                       BG(user_shutdown_function_names) = NULL;
                }
                zend_end_try();
 }