From 44205dc58ae7fbe08f107da11fc9f70196949069 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 10 Oct 2005 16:42:32 +0000 Subject: [PATCH] - MFH: 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 555615c4ea..1d8214b125 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -190,7 +190,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