From: Derick Rethans Date: Tue, 30 Jun 2009 16:15:43 +0000 (+0000) Subject: - Fixed bug #47351 (Memory leak in DateTime). X-Git-Tag: php-5.4.0alpha1~191^2~3204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ef811e1df31dec9f695bf256fb1792cd80b9c51;p=php - Fixed bug #47351 (Memory leak in DateTime). --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 507a7875c0..3c7e490951 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2517,7 +2517,7 @@ static int date_initialize(php_date_obj *dateobj, /*const*/ char *time_str, int } timelib_unixtime2local(now, (timelib_sll) time(NULL)); - timelib_fill_holes(dateobj->time, now, 0); + timelib_fill_holes(dateobj->time, now, TIMELIB_NO_CLONE); timelib_update_ts(dateobj->time, tzi); dateobj->time->have_relative = 0;