From 7ef811e1df31dec9f695bf256fb1792cd80b9c51 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 30 Jun 2009 16:15:43 +0000 Subject: [PATCH] - Fixed bug #47351 (Memory leak in DateTime). --- ext/date/php_date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1