summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 4c8f67f..80e3764 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -904,6 +904,7 @@ PyImport_ExecCodeModuleObject(PyObject *name, PyObject *co, PyObject *pathname,
&PyId__fix_up_module,
d, name, pathname, cpathname, NULL);
if (res != NULL) {
+ Py_DECREF(res);
res = exec_code_in_module(name, d, co);
}
return res;