Author: Armin Rigo <ar...@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;
 }
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to