diff options
| author | Travis Oliphant <oliphant@enthought.com> | 2007-09-20 02:08:54 +0000 |
|---|---|---|
| committer | Travis Oliphant <oliphant@enthought.com> | 2007-09-20 02:08:54 +0000 |
| commit | b1cc248d1353d9a7266bacff9f5488e0b902852d (patch) | |
| tree | c0e6b93796e4f5c7ec7255ae154c7e3c9fa7be3a /numpy/lib/src/_compiled_base.c | |
| parent | 45cc025cbe09ecbb904fa01b02a30fd70f1a0fdb (diff) | |
| download | numpy-b1cc248d1353d9a7266bacff9f5488e0b902852d.tar.gz | |
Fix ticket #572: memory leak in _insert for 0-d input.
Diffstat (limited to 'numpy/lib/src/_compiled_base.c')
| -rw-r--r-- | numpy/lib/src/_compiled_base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c index 28798d13b..42c0183e8 100644 --- a/numpy/lib/src/_compiled_base.c +++ b/numpy/lib/src/_compiled_base.c @@ -287,6 +287,7 @@ arr_insert(PyObject *self, PyObject *args, PyObject *kwdict) Py_DECREF(amask); Py_DECREF(avals); PyDataMem_FREE(zero); + Py_DECREF(ainput); Py_INCREF(Py_None); return Py_None; } |
