From: Eric Snow Date: Thu, 29 May 2014 18:31:39 +0000 (-0600) Subject: Issue #21226: fix a ref leak. X-Git-Tag: v3.4.2rc1~482 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58cfdd8af80f2ffa44b207e0846ddbe7f73836cb;p=thirdparty%2FPython%2Fcpython.git Issue #21226: fix a ref leak. --- diff --git a/Python/import.c b/Python/import.c index 4c8f67f49934..80e376483fff 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;