From d9a3cfd931ff9d0fa97b2ed8d435065d3ca52662 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 10 Oct 2005 16:41:40 +0000 Subject: [PATCH] - Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup tables. --- ext/date/php_date.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 6ed69160b5..32f2558889 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -192,7 +192,9 @@ static void _php_date_tzinfo_dtor(void *tzinfo) { timelib_tzinfo **tzi = (timelib_tzinfo **)tzinfo; - timelib_tzinfo_dtor(*tzi); + if (*tzi) { + timelib_tzinfo_dtor(*tzi); + } } /* {{{ PHP_RINIT_FUNCTION */ -- 2.50.1