From: Derick Rethans Date: Mon, 10 Oct 2005 16:42:32 +0000 (+0000) Subject: - MFH: Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup X-Git-Tag: php-5.1.0RC2~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44205dc58ae7fbe08f107da11fc9f70196949069;p=php - MFH: Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup tables. --- 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 */