summaryrefslogtreecommitdiff
path: root/numpy/lib/src/_compiled_base.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-09-20 02:08:54 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-09-20 02:08:54 +0000
commitb1cc248d1353d9a7266bacff9f5488e0b902852d (patch)
treec0e6b93796e4f5c7ec7255ae154c7e3c9fa7be3a /numpy/lib/src/_compiled_base.c
parent45cc025cbe09ecbb904fa01b02a30fd70f1a0fdb (diff)
downloadnumpy-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.c1
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;
}