[Python-checkins] cpython (3.4): Issue #21226: fix a ref leak.
eric.snow
python-checkins at python.org
Thu May 29 20:44:15 CEST 2014
http://hg.python.org/cpython/rev/baa7b5555656
changeset: 90894:baa7b5555656
branch: 3.4
parent: 90892:d90905960803
user: Eric Snow <ericsnowcurrently at gmail.com>
date: Thu May 29 12:31:39 2014 -0600
summary:
Issue #21226: fix a ref leak.
files:
Python/import.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -904,6 +904,7 @@
&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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list