summaryrefslogtreecommitdiff
path: root/numpy/array_api
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-12-15 18:18:44 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-12-15 18:26:40 -0600
commit4d16baca2494718e16016375b04e82cfe8de1b81 (patch)
tree3862df94a247bf33904e4e569fef5bf4c9f8ebff /numpy/array_api
parent06e37a3e6e48f06a3ff4010b4ad88e4b001184fb (diff)
downloadnumpy-4d16baca2494718e16016375b04e82cfe8de1b81.tar.gz
BUG: Fix setstate logic for empty arrays
Also cleans up the clearing of the mem_handler slightly. Lets try to make sure it is always NULL when OWNDATA is not set (and an error is given), just so there can't be any accidental double-frees. Obviously, this function has more problems then the ones fixed here... This introduces the NBYTES_ALLOCATED helper basically just for these two places to fix the UHOH prints also...
Diffstat (limited to 'numpy/array_api')
0 files changed, 0 insertions, 0 deletions