[pypy-commit] cffi default: Found and fixed the bug.
arigo
noreply at buildbot.pypy.org
Thu Jul 18 18:18:07 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1280:f2c8f99da729
Date: 2013-07-18 18:15 +0200
http://bitbucket.org/cffi/cffi/changeset/f2c8f99da729/
Log: Found and fixed the bug.
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -4420,6 +4420,7 @@
cd->c_type = ct;
cd->c_data = (char *)closure;
cd->c_weakreflist = NULL;
+ PyObject_GC_Track(cd);
cif_descr = (cif_description_t *)ct->ct_extra;
if (cif_descr == NULL) {
@@ -4856,6 +4857,7 @@
Py_INCREF(x);
cd->c_data = ((char *)x) - 42;
cd->c_weakreflist = NULL;
+ PyObject_GC_Track(cd);
return (PyObject *)cd;
}
More information about the pypy-commit
mailing list