[pypy-svn] r72607 - pypy/branch/cpython-extension/pypy/module/cpyext

xoraxax at codespeak.net xoraxax at codespeak.net
Tue Mar 23 02:24:35 CET 2010


Author: xoraxax
Date: Tue Mar 23 02:24:34 2010
New Revision: 72607

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/macros.py
Log:
Now refcounting of type objects works again :-)

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/macros.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/macros.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/macros.py	Tue Mar 23 02:24:34 2010
@@ -38,7 +38,5 @@
         print "Calling ", pto.c_tp_dealloc, "of", w_obj, "'s type which is", w_type
         generic_cpy_call(space, pto.c_tp_dealloc, w_obj, decref_args=False)
     finally:
-        # XXX uncommenting the next line gives double frees, why?
-        #Py_DECREF(space, w_type) # make_ref bumps refcount
-        pass
+        Py_DECREF(space, w_type) # make_ref bumps refcount
 



More information about the Pypy-commit mailing list