[pypy-commit] pypy pypy-pyarray: whoops

mattip noreply at buildbot.pypy.org
Sun Sep 22 08:39:02 CEST 2013


Author: Matti Picus <matti.picus at gmail.com>
Branch: pypy-pyarray
Changeset: r67052:e89d93815460
Date: 2013-09-22 09:37 +0300
http://bitbucket.org/pypy/pypy/changeset/e89d93815460/

Log:	whoops

diff --git a/pypy/module/cpyext/test/test_ndarrayobject.py b/pypy/module/cpyext/test/test_ndarrayobject.py
--- a/pypy/module/cpyext/test/test_ndarrayobject.py
+++ b/pypy/module/cpyext/test/test_ndarrayobject.py
@@ -242,6 +242,7 @@
                 PyObject * obj2 = PyArray_ZEROS(2, dims2, 11, 0);
                 PyArray_FILLWBYTE(obj2, 42);
                 PyArray_CopyInto(obj2, obj1);
+                Py_DECREF(obj1);
                 return obj2;
                 '''
                 ),


More information about the pypy-commit mailing list