Commit 43fb4843 authored by Marius Wachtler's avatar Marius Wachtler

struct: let the GC know about the cache variable

parent 00324770
......@@ -1819,6 +1819,7 @@ cache_struct(PyObject *fmt)
cache = PyDict_New();
if (cache == NULL)
return NULL;
PyGC_AddRoot(cache);
}
s_object = PyDict_GetItem(cache, fmt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment