Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory leak with ndarray as function arg in Cython #3046
Original issue was created for numpy (numpy/numpy#13237) as I thought this was specific to numpy, but they believe this to be a Cython issue. This issue was uncovered during development of pandas. Below is the issue as opened in the numpy repository:
When using an ndarray as an arg to a
Reproducing code example:
Numpy/Python version information:
Thanks for the report. Sounds like the issue might be Cython's detection of unused variables. It could be that they are handled differently (or not at all) on cleanup. However, the report suggests that buffer / memory-view variables require the usual cleanup here.