From: Ilia Alshanetsky Date: Thu, 30 Jun 2005 23:33:37 +0000 (+0000) Subject: Fixed memory leak. X-Git-Tag: php-5.1.0b3~236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eab2cdedd328cd0eb84936216f4e077136da0172;p=php Fixed memory leak. --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 9dd466bccf..12da3d3461 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -233,6 +233,10 @@ static char *php_format_date(char *format, int format_len, timelib_time *t, int smart_str_0(&string); + if (localtime) { + timelib_time_offset_dtor(offset); + } + return string.c; }