-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Memory leak when calling PIL.Image.Image.__arrow_c_array__() #8950
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
Labels
Comments
Ok, Looking at this in valgrind is clearly showing that the image memory is retained. This is the first arrow section with fewer iterations:
Looks like an
|
This was referenced May 11, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What did you do?
I'm calling the
PIL.Image.Image.__arrow_c_array__
method on images to access their data.What did you expect to happen?
max rss should stay constant after a while
What actually happened?
memory gets leaked
The output of the reproduction script below:
What are your OS, Python and Pillow versions?
Reproduction script
Doesn't need to be run with uv. If run with cpython, make sure the dependencies are installed>
Related to: #8329 #8330
The text was updated successfully, but these errors were encountered: