Skip to content

ext/Intl: Fix memory leaks when calling IntlListFormatter::__construct() twice - #22394

Closed
LamentXU123 wants to merge 1 commit into
php:PHP-8.5from
LamentXU123:intl-constr-mem-leak
Closed

ext/Intl: Fix memory leaks when calling IntlListFormatter::__construct() twice#22394
LamentXU123 wants to merge 1 commit into
php:PHP-8.5from
LamentXU123:intl-constr-mem-leak

Conversation

@LamentXU123

Copy link
Copy Markdown
Member

Follow up of #22386.

IntlListFormatter stores a UListFormatter*. Calling the constructor again on an already initialized object overwrote the existing pointer.

LamentXU123 added a commit that referenced this pull request Jun 22, 2026
* PHP-8.5:
ext/Intl: Fix IntlListFormatter double construction leak (#22394)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@LamentXU123@devnexen