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.
_testcapi/heaptype.c
1 parent 33c92c4 commit d636d7dCopy full SHA for d636d7d
1 file changed
Modules/_testcapi/heaptype.c
@@ -661,8 +661,11 @@ heapctypesubclasswithfinalizer_finalize(PyObject *self)
661
goto cleanup_finalize;
662
}
663
oldtype = PyObject_GetAttrString(m, "HeapCTypeSubclassWithFinalizer");
664
+ if (oldtype == NULL) {
665
+ goto cleanup_finalize;
666
+ }
667
newtype = PyObject_GetAttrString(m, "HeapCTypeSubclass");
- if (oldtype == NULL || newtype == NULL) {
668
+ if (newtype == NULL) {
669
670
671
0 commit comments