[NumPy-Tickets] [NumPy] #2135: nditer memory leak with negative strides and UPDATEIFCOPY

NumPy Trac numpy-tickets@scipy....
Fri May 18 15:17:47 CDT 2012


#2135: nditer memory leak with negative strides and UPDATEIFCOPY
--------------------+-------------------------------------------------------
 Reporter:  mwiebe  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  1.6.2   
Component:  Other   |     Version:  1.6.1   
 Keywords:          |  
--------------------+-------------------------------------------------------
 Numpy uses its 'base' attribute in two different ways, both
 to manage the memory of an external data buffer, and to track
 an array for 'UPDATEIFCOPY' purposes. The nditer was creating
 a temporary view with negative strides to match the strides of
 input arrays, but then also wanted to use UPDATEIFCOPY. Unfortunately
 this choice to overload 'base' for both purposes prevents that
 from working, and the result was a memory leak.

 This bug was found from reviewing Nathaniel's pull request
 https://github.com/numpy/numpy/pull/280.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2135>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list