diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-11-18 19:30:31 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-11-18 19:30:31 +0000 |
commit | 53adce329f29e673852519682db6b204192d8002 (patch) | |
tree | f2ee1e435395353e739b69cf50495449f97d3ea0 /scipy/base/src/arraymethods.c | |
parent | 1931776a17dff3d751780f8ab3e1f9f2104292f6 (diff) | |
download | numpy-53adce329f29e673852519682db6b204192d8002.tar.gz |
Fixed array_resize problem.
Diffstat (limited to 'scipy/base/src/arraymethods.c')
-rw-r--r-- | scipy/base/src/arraymethods.c | 1 |
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; |