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

Corrected memory allocation #5958

Merged
merged 1 commit into from Mar 27, 2022
Merged

Corrected memory allocation #5958

merged 1 commit into from Mar 27, 2022

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Jan 13, 2022

Addresses 1e09241#commitcomment-63846366

I failed to acknowledge that malloc allocates a block of "size", while calloc allocates "nitems" blocks of "size".

@stratakis
Copy link

Pinging here. Does this address the issue from 1e09241 ?

@radarhere
Copy link
Member Author

That too much memory is allocated? Yes, it should fix that.

@hugovk hugovk merged commit 5a35e87 into python-pillow:main Mar 27, 2022
@radarhere radarhere deleted the memory branch March 27, 2022 21:00
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.

None yet

3 participants