[pypy-commit] cffi default: Should call GC_UnTrack before Py_DECREF()
arigo
pypy.commits at gmail.com
Sun Aug 20 11:07:22 EDT 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r3003:2763112dfca7
Date: 2017-08-20 17:07 +0200
http://bitbucket.org/cffi/cffi/changeset/2763112dfca7/
Log: Should call GC_UnTrack before Py_DECREF()
diff --git a/c/lib_obj.c b/c/lib_obj.c
--- a/c/lib_obj.c
+++ b/c/lib_obj.c
@@ -89,6 +89,7 @@
static void lib_dealloc(LibObject *lib)
{
+ PyObject_GC_UnTrack(lib);
cdlopen_close_ignore_errors(lib->l_libhandle);
Py_DECREF(lib->l_dict);
Py_DECREF(lib->l_libname);
More information about the pypy-commit
mailing list