From dbc1cb5e9215a747ff99e024f199a512140e7dec Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 2 Sep 2004 09:39:55 +0000 Subject: [PATCH] MF4: fix crash if shutdown uses file stats --- ext/standard/filestat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 2aa7051a2c..3e9f8b735e 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -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; } -- 2.50.1