diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2014-05-29 18:31:39 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2014-05-29 18:31:39 (GMT) |
commit | 58cfdd8af80f2ffa44b207e0846ddbe7f73836cb (patch) | |
tree | c3125525176b5158bc623d89eb25417c6afe69cc /Python/import.c | |
parent | 2e8234a5975a79773584220a8f4d61f5fc5cf8e9 (diff) | |
download | cpython-58cfdd8af80f2ffa44b207e0846ddbe7f73836cb.zip cpython-58cfdd8af80f2ffa44b207e0846ddbe7f73836cb.tar.gz cpython-58cfdd8af80f2ffa44b207e0846ddbe7f73836cb.tar.bz2 |
Issue #21226: fix a ref leak.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 1 |
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; |