[Numpy-tickets] [NumPy] #572: Memory leak in _insert when using rank 0 input
NumPy
numpy-tickets@scipy....
Wed Sep 5 04:29:46 CDT 2007
#572: Memory leak in _insert when using rank 0 input
-----------------------+----------------------------------------------------
Reporter: cdavid | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.4 Release
Component: numpy.lib | Version: none
Severity: major | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment (by cdavid):
Well, the memory leak is obvious when looking at the code, since the
function arr_insert create a new reference of avals in any case, and this
is dereferenced for all cases but rank 0 input.
Your example does not show any leak, indeed... Since the memory leak is
obvious, I think we would better apply the patch anyway. I will try to get
the test code I used to detect the leak in the first place.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/572#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list