com php-src: Fixed memory leak: ext/intl/calendar/calendar_me thods.cpp

From: Date: Tue, 10 Mar 2015 20:16:09 +0000
Subject: com php-src: Fixed memory leak: ext/intl/calendar/calendar_me thods.cpp
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85450@lists.php.net to get a copy of this message
Commit: 816b1969732af6db3d2be3edab7938c299ea6535 Author: Dmitry Stogov <dmitry@zend.com> Tue, 10 Mar 2015 23:16:09 +0300 Parents: ed9c8a23ba573b3e81399a158f3dee4e9708b6ad Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=816b1969732af6db3d2be3edab7938c299ea6535 Log: Fixed memory leak Changed paths: M ext/intl/calendar/calendar_methods.cpp Diff: diff --git a/ext/intl/calendar/calendar_methods.cpp b/ext/intl/calendar/calendar_methods.cpp index 0b5b0c1..c8acf5f 100644 --- a/ext/intl/calendar/calendar_methods.cpp +++ b/ext/intl/calendar/calendar_methods.cpp @@ -1268,6 +1268,7 @@ U_CFUNC PHP_FUNCTION(intlcal_to_date_time) zval *timezone_zval = timezone_convert_to_datetimezone( &tz, CALENDAR_ERROR_P(co), "intlcal_to_date_time", &tmp); if (timezone_zval == NULL) { + zval_ptr_dtor(&ts_zval); RETURN_FALSE; }

« previous php.cvs (#85450) next »