[Numpy-tickets] [NumPy] #572: Memory leak in _insert when using rank 0 input

NumPy numpy-tickets@scipy....
Fri Aug 24 03:18:38 CDT 2007


#572: Memory leak in _insert when using rank 0 input
-----------------------+----------------------------------------------------
 Reporter:  cdavid     |       Owner:  somebody
     Type:  defect     |      Status:  new     
 Priority:  normal     |   Milestone:          
Component:  numpy.lib  |     Version:  none    
 Severity:  major      |    Keywords:          
-----------------------+----------------------------------------------------
 The function _insert has a memory leak, and this shows when using for
 example cdf functions of distributions classes in scipy.stats (see scipy
 #476).

 The fix is trivial: just call Py_DECREF on ainput in rank 0 case, as in
 general case (the attached patch avoids separate code path for memory
 cleaning instead).

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/572>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list