[GIT-PULLS] [php-src] PR #23503: [intl] Fix leak of time zone wrapper in Calendar debug info
[email protected] (iliaal)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/23503 Author: iliaal Calendar_get_debug_info() created a temporary IntlTimeZone wrapper zval via timezone_object_construct() and never released it, leaking one wrapper object per var_dump()/debug dump of an IntlCalendar instance. The wrapper is now released with zval_ptr_dtor() after its debug info has been copied into the result. Other timezone_object_construct() call sites write into return_value and are refcount-managed. No other intl get_debug_info handler constructs a temporary wrapper.