From 53adce329f29e673852519682db6b204192d8002 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 18 Nov 2005 19:30:31 +0000 Subject: Fixed array_resize problem. --- scipy/base/src/arraymethods.c | 1 + 1 file changed, 1 insertion(+) (limited to 'scipy/base/src/arraymethods.c') 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; -- cgit v1.2.1