Fix a refcount bug in an obscure code corner.

Already backported.
This commit is contained in:
Thomas Heller 2004-06-07 15:04:10 +00:00
parent 1c0228a519
commit 25653242fe
1 changed files with 1 additions and 0 deletions

View File

@ -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;