summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2012-05-18 15:14:58 -0500
committerMark Wiebe <mwwiebe@gmail.com>2012-05-18 15:14:58 -0500
commit5a86e25b5680595b066615ac97ae97bec63a56fc (patch)
tree00fbf9836617f0b1d636fedb7438f4b6335c2427 /numpy/core/arrayprint.py
parent4fce387ddca6f2e68ae3fa5c21778fceeb636426 (diff)
downloadnumpy-5a86e25b5680595b066615ac97ae97bec63a56fc.tar.gz
BUG: nditer: Memory leak from setting 'base' attribute two ways
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 has been fixed by choosing instead to retain positive strides and not fully match the order of input memory when doing the UPDATEIFCOPY.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions