Skip to content
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

Fixed freeing unallocated pointer when resizing with height too large #4116

Merged
merged 1 commit into from Nov 13, 2019

Conversation

radarhere
Copy link
Member

Resolves #4115

#3393 added two free lines that should not be present. bounds_vert and kk_vert are assigned by precompute_coeffs. If precompute_coeffs returns 0, then they were not assigned, and should not be freed.

I have added a test that fails without this PR to demonstrate.

@radarhere radarhere mentioned this pull request Oct 4, 2019
@hugovk hugovk merged commit b64d96d into python-pillow:master Nov 13, 2019
@radarhere radarhere deleted the memory branch November 13, 2019 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Freeing pointers
2 participants