From 25653242fe7523b9b66ec836066908a74a49cda1 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Mon, 7 Jun 2004 15:04:10 +0000 Subject: Fix a refcount bug in an obscure code corner. Already backported. --- Python/import.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/import.c b/Python/import.c index 030142a..d4c9e2e 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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; -- cgit v0.12