summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-09-09 09:59:29 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2022-09-09 09:59:29 +0200
commit3da24bb449c312e51086734cf935c0c661e1f95f (patch)
treeb8f626a9716bc09ac4d1940a1c1046fdb5fd32cf /numpy/array_api/_array_object.py
parent4a9b7145eb1a0731821eb8912c2474352cadc682 (diff)
downloadnumpy-3da24bb449c312e51086734cf935c0c661e1f95f.tar.gz
BUG: Fix incorrect refcounting in new `asarray` path
The new path to preserve dtypes provided by creating a view got the reference counting wrong, because it also hit the incref path that was needed for returning the identity. This fixes up gh-21995 Closes gh-22233
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions