Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b3d8f commit 1a2652cCopy full SHA for 1a2652c
Objects/typeobject.c
@@ -5009,6 +5009,7 @@ clear_static_tp_subclasses(PyTypeObject *type)
5009
going to leak. This mostly only affects embedding scenarios.
5010
*/
5011
5012
+#ifndef NDEBUG
5013
// For now we just do a sanity check and then clear tp_subclasses.
5014
Py_ssize_t i = 0;
5015
PyObject *key, *ref; // borrowed ref
@@ -5021,6 +5022,7 @@ clear_static_tp_subclasses(PyTypeObject *type)
5021
5022
assert(!(subclass->tp_flags & _Py_TPFLAGS_STATIC_BUILTIN));
5023
Py_DECREF(subclass);
5024
}
5025
+#endif
5026
5027
clear_tp_subclasses(type);
5028
0 commit comments