com php-src: Fix leak in IntlDateFormatter::getTimeZone(): ext/intl/dateformat/dateformat_attrcpp.cpp
| From: | Nikita Popov | Date: | Fri, 17 Apr 2015 07:28:38 +0000 |
| Subject: | com php-src: Fix leak in IntlDateFormatter::getTimeZone(): ext/intl/dateformat/dateformat_attrcpp.cpp | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86346@lists.php.net to get a copy of this message | ||
Commit: 81387562950a4f13238de5782e750fce163304e3
Author: Nikita Popov <nikic@php.net> Thu, 16 Apr 2015 21:51:47 +0200
Parents: 4e2be45309f02ff1fa7305d33d45e64d773d1b24
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=81387562950a4f13238de5782e750fce163304e3
Log:
Fix leak in IntlDateFormatter::getTimeZone()
Changed paths:
M ext/intl/dateformat/dateformat_attrcpp.cpp
Diff:
diff --git a/ext/intl/dateformat/dateformat_attrcpp.cpp b/ext/intl/dateformat/dateformat_attrcpp.cpp
index 8320904..49c4094 100644
--- a/ext/intl/dateformat/dateformat_attrcpp.cpp
+++ b/ext/intl/dateformat/dateformat_attrcpp.cpp
@@ -94,7 +94,6 @@ U_CFUNC PHP_FUNCTION(datefmt_get_timezone)
RETURN_FALSE;
}
- object_init_ex(return_value, TimeZone_ce_ptr);
timezone_object_construct(tz_clone, return_value, 1);
}