From 58cfdd8af80f2ffa44b207e0846ddbe7f73836cb Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 29 May 2014 12:31:39 -0600 Subject: [PATCH] Issue #21226: fix a ref leak. --- Python/import.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/import.c b/Python/import.c index 4c8f67f4993..80e376483ff 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;