Fix a refcount bug in an obscure code corner.
Already backported.
This commit is contained in:
parent
1c0228a519
commit
25653242fe
|
@ -921,6 +921,7 @@ load_package(char *name, char *pathname)
|
|||
if (fdp == NULL) {
|
||||
if (PyErr_ExceptionMatches(PyExc_ImportError)) {
|
||||
PyErr_Clear();
|
||||
Py_INCREF(m);
|
||||
}
|
||||
else
|
||||
m = NULL;
|
||||
|
|
Loading…
Reference in New Issue