diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-05-09 08:54:39 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-05-09 08:54:39 +0000 |
commit | 4a0b99752e3d0fc70e643bf27b13b315edaf7440 (patch) | |
tree | ae6ed1f1d430743b9a1b8f64d12548a8e43b258d /numpy/lib/src/_compiled_base.c | |
parent | 56dc16d4724f4ace37241073a8933c818849a3c1 (diff) | |
download | numpy-4a0b99752e3d0fc70e643bf27b13b315edaf7440.tar.gz |
Add missing Py_INCREF to fix ticket #95
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 e5bfeae43..596090f42 100644 --- a/numpy/lib/src/_compiled_base.c +++ b/numpy/lib/src/_compiled_base.c @@ -166,6 +166,7 @@ arr_digitize(PyObject *self, PyObject *args, PyObject *kwds) type = PyArray_DescrFromType(PyArray_DOUBLE); Py_Try(ax=PyArray_FromAny(ox, type, 1, 1, CARRAY_FLAGS, NULL)); + Py_INCREF(type); Py_Try(abins = PyArray_FromAny(obins, type, 1, 1, CARRAY_FLAGS, NULL)); lx = PyArray_SIZE(ax); |