From a67ea98b99d1d5e97be6d6d886d2ae23c3f0c085 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Mon, 7 Jun 2004 14:59:59 +0000 Subject: Fix a refcount bug in an obscure code corner. --- Python/import.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/import.c b/Python/import.c index 670e603..11aa2b4 100644 --- a/Python/import.c +++ b/Python/import.c @@ -943,6 +943,7 @@ load_package(char *name, char *pathname) if (fdp == NULL) { if (PyErr_ExceptionMatches(PyExc_ImportError)) { PyErr_Clear(); + Py_INCREF(m); } else m = NULL; -- cgit v0.12