From: Thomas Heller Date: Mon, 7 Jun 2004 14:59:59 +0000 (+0000) Subject: Fix a refcount bug in an obscure code corner. X-Git-Tag: v2.3.5c1~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a67ea98b99d1d5e97be6d6d886d2ae23c3f0c085;p=thirdparty%2FPython%2Fcpython.git Fix a refcount bug in an obscure code corner. --- diff --git a/Python/import.c b/Python/import.c index 670e603e64c6..11aa2b4571fd 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;