diff options
| author | sasha <sasha@localhost> | 2006-01-13 03:37:27 +0000 |
|---|---|---|
| committer | sasha <sasha@localhost> | 2006-01-13 03:37:27 +0000 |
| commit | f64c19f720420b7ad0a10355864dc1f69364ef26 (patch) | |
| tree | 28dfdb863db8d537d6eedd236cd68f8a74c1fd4e /numpy/core/src/arrayobject.c | |
| parent | ed647a020935de7d43b2d51c2625dc86ddc1291e (diff) | |
| download | numpy-f64c19f720420b7ad0a10355864dc1f69364ef26.tar.gz | |
fixed core dump for invalid __array__
Diffstat (limited to 'numpy/core/src/arrayobject.c')
| -rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 91c149a41..9b34fcda0 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -5921,7 +5921,7 @@ array_fromattr(PyObject *op, PyArray_Descr *typecode, int flags) "object __array__ method not " \ "producing an array"); Py_DECREF(new); - Py_DECREF(typecode); + Py_XDECREF(typecode); return NULL; } r = array_fromarray((PyArrayObject *)new, typecode, flags); |
