summaryrefslogtreecommitdiff
path: root/scipy/base/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-11-18 19:30:31 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-11-18 19:30:31 +0000
commit53adce329f29e673852519682db6b204192d8002 (patch)
treef2ee1e435395353e739b69cf50495449f97d3ea0 /scipy/base/src/arraymethods.c
parent1931776a17dff3d751780f8ab3e1f9f2104292f6 (diff)
downloadnumpy-53adce329f29e673852519682db6b204192d8002.tar.gz
Fixed array_resize problem.
Diffstat (limited to 'scipy/base/src/arraymethods.c')
-rw-r--r--scipy/base/src/arraymethods.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scipy/base/src/arraymethods.c b/scipy/base/src/arraymethods.c
index 79eecafda..8af348c80 100644
--- a/scipy/base/src/arraymethods.c
+++ b/scipy/base/src/arraymethods.c
@@ -598,6 +598,7 @@ array_resize(PyArrayObject *self, PyObject *args)
}
ret = PyArray_Resize(self, &newshape);
PyDimMem_FREE(newshape.ptr);
+ if (ret == NULL) return NULL;
Py_DECREF(ret);
Py_INCREF(Py_None);
return Py_None;