Fixed some memory leaks in the Python module

This commit is contained in:
Ray Speth 2012-03-23 22:16:42 +00:00
parent 3c83a76e48
commit 4feb983688
2 changed files with 0 additions and 2 deletions

View file

@ -169,7 +169,6 @@ phase_getarray(PyObject* self, PyObject* args)
#ifdef HAS_NUMPY
npy_intp nnn = nsp;
x = (PyArrayObject*)PyArray_SimpleNew(1, &nnn, PyArray_DOUBLE);
Py_INCREF(x);
#else
int nnn = int(nsp);
x = (PyArrayObject*)PyArray_FromDims(1, &nnn, PyArray_DOUBLE);

View file

@ -239,7 +239,6 @@ thermo_getarray(PyObject* self, PyObject* args)
npy_intp nnn = xlen;
PyArrayObject* x =
(PyArrayObject*)PyArray_SimpleNew(1, &nnn, PyArray_DOUBLE);
Py_INCREF(x);
#else
int nnn = int(xlen);
PyArrayObject* x =