Author: Ronan Lamy <[email protected]>
Branch: cpyext-nowrapper
Changeset: r92584:91457554c166
Date: 2017-10-03 18:23 +0200
http://bitbucket.org/pypy/pypy/changeset/91457554c166/

Log:    fix PyObject_GC_Del()

diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/object.py
+++ b/pypy/module/cpyext/object.py
@@ -74,7 +74,8 @@
 
 @cpython_api([rffi.VOIDP], lltype.Void, no_gc=True)
 def PyObject_GC_Del(obj):
-    PyObject_Free(obj)
+    # like PyObject_Free
+    lltype.free(obj, flavor='raw')
 
 @cpython_api([PyObject], PyObjectP, error=CANNOT_FAIL)
 def _PyObject_GetDictPtr(space, op):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to