summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorFlorian MARGAINE <florian@margaine.com>2014-11-23 01:42:26 +0100
committerFlorian MARGAINE <florian@margaine.com>2014-11-23 01:42:26 +0100
commit489bfb0af9a03ea1d2134e0bf84670e40e5f05ca (patch)
treee9b70fc144ce641644d186a6301192640dab4b4e /ext/date/php_date.c
parent69b9381901e8ab9372ef034a54833461c9e7bb76 (diff)
downloadphp-git-489bfb0af9a03ea1d2134e0bf84670e40e5f05ca.tar.gz
Fixes memory leak introduced in 2b9af967
Fixes https://bugs.php.net/bug.php?id=68285
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 5b62b540b7..fe1430f028 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;
}