From: Ilia Alshanetsky Date: Wed, 15 Jun 2005 23:30:20 +0000 (+0000) Subject: Avoid double-free. X-Git-Tag: php-5.1.0b2~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=694585e1a8ddfbea74e8efa18408b20cb584e75c;p=php Avoid double-free. --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index d3e56e1b9b..35e13c66e5 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -141,6 +141,9 @@ PHP_FUNCTION(strtotime) if (now->tz_info == tzi) { now->tz_info = NULL; } + if (t->tz_info == tzi) { + t->tz_info = NULL; + } timelib_time_dtor(now); timelib_time_dtor(t);