Commit 25653242 authored by Thomas Heller's avatar Thomas Heller

Fix a refcount bug in an obscure code corner.

Already backported.
parent 1c0228a5
......@@ -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;
......
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