summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_recfunctions.py
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej.certik@gmail.com>2012-12-15 15:18:47 -0800
committerOndřej Čertík <ondrej.certik@gmail.com>2012-12-15 15:23:33 -0800
commit3c23c9f6f50b5bea5f449cddd607d5758e4b45b1 (patch)
tree5a0ef8eefdde30f17e30ab3151dd701ffab0204c /numpy/lib/tests/test_recfunctions.py
parent5f04dc8a53346e8225d0865a0e7064e4f4d93d4b (diff)
downloadnumpy-3c23c9f6f50b5bea5f449cddd607d5758e4b45b1.tar.gz
FIX: Fixes the segfault in PyArray_FromScalar
The problem was that PyArray_NewFromDescr() steals a reference to typecode and so any further usage of it is undefined. Apparently this bug only appeared in debug version of Python 3.2. The fix is to simply INCREF typecode and then carefully DECREF it at each possible exit from the function. Fixes gh-2738.
Diffstat (limited to 'numpy/lib/tests/test_recfunctions.py')
0 files changed, 0 insertions, 0 deletions