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

index 6779ceea6bfa05809171e17ea6e34a6e0b4074f6..bca5328ac69243bb458c018553dcfd7f33580d5f 100644 (file)
@@ -2198,6 +2198,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();
 }