]> granicus.if.org Git - php/commitdiff
MF4: fix crash if shutdown uses file stats
authorStanislav Malyshev <stas@php.net>
Thu, 2 Sep 2004 09:39:55 +0000 (09:39 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 2 Sep 2004 09:39:55 +0000 (09:39 +0000)
ext/standard/filestat.c

index 2aa7051a2cbf6b8d22c607299cd9685655048e58..3e9f8b735edb3917d29617417555a57e370e320a 100644 (file)
@@ -107,9 +107,11 @@ PHP_RSHUTDOWN_FUNCTION(filestat)
 {
        if (BG(CurrentStatFile)) {
                efree (BG(CurrentStatFile));
+               BG(CurrentStatFile) = NULL;
        }
        if (BG(CurrentLStatFile)) {
                efree (BG(CurrentLStatFile));
+               BG(CurrentLStatFile) = NULL;
        }
        return SUCCESS;
 }