From 694585e1a8ddfbea74e8efa18408b20cb584e75c Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 15 Jun 2005 23:30:20 +0000 Subject: [PATCH] Avoid double-free. --- ext/date/php_date.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.40.0