com php-src: Fixes memory leak introduced in 2b9af967: ext/date/php_date.c
| From: | Stanislav Malyshev | Date: | Sun, 23 Nov 2014 00:42:26 +0000 |
| Subject: | com php-src: Fixes memory leak introduced in 2b9af967: ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83407@lists.php.net to get a copy of this message | ||
Commit: 489bfb0af9a03ea1d2134e0bf84670e40e5f05ca
Author: Florian MARGAINE <florian@margaine.com> Sun, 23 Nov 2014 01:42:26 +0100
Parents: 69b9381901e8ab9372ef034a54833461c9e7bb76
Branches: PHP-5.5 PHP-5..6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=489bfb0af9a03ea1d2134e0bf84670e40e5f05ca
Log:
Fixes memory leak introduced in 2b9af967
Fixes https://bugs.php.net/bug.php?id=68285
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 5b62b54..fe1430f 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -3665,6 +3665,7 @@ static int timezone_initialize(php_timezone_obj *tzobj, /*const*/ char *tz
TSRML
return FAILURE;
} else {
set_timezone_from_timelib_time(tzobj, dummy_t);
+ free(dummy_t->tz_abbr);
efree(dummy_t);
return SUCCESS;
}