Commits

Armin Rigo committed f2c8f99

Found and fixed the bug.

  • Participants
  • Parent commits 3751a14

Comments (0)

Files changed (1)

c/_cffi_backend.c

     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) {
     Py_INCREF(x);
     cd->c_data = ((char *)x) - 42;
     cd->c_weakreflist = NULL;
+    PyObject_GC_Track(cd);
     return (PyObject *)cd;
 }