Skip to content

Fix memory leak on php_odbc_fetch_hash() failure #18787

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

Open
wants to merge 1 commit into
base: PHP-8.3
Choose a base branch
from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Jun 6, 2025

The array is initialized but not freed.
Note that this codepath is untested in CI and I'm not sure how to test this.

The array is initialized but not freed.
@NattyNarwhal
Copy link
Member

For testing, one thing I was considering writing would be a test harness ODBC driver to test possible failure paths like this. I'm not sure if one exists already - a quick check only turned up this very stumpy one for fuzzing pyodbc.

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