Skip to content

Fix memory leak in phpdbg calling registered function #17635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

nielsdos
Copy link
Member

The named arguments array is never cleaned up, so a trivial memory leak.
I first had to partially fix GH-17387 though to prevent crashing...

This was detected using an experimental static analyser I'm developing.

The length of the string should be set to the truncated length (that was
used to duplicate the input anyway).
@nielsdos nielsdos closed this in 62bbfde Jan 30, 2025
charmitro pushed a commit to wasix-org/php that referenced this pull request Mar 13, 2025
Sign up for free to 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