[Python-checkins] cpython: plug ref leak
benjamin.peterson
python-checkins at python.org
Fri May 25 07:35:38 CEST 2012
http://hg.python.org/cpython/rev/7dad810efbfe
changeset: 77128:7dad810efbfe
user: Benjamin Peterson <benjamin at python.org>
date: Thu May 24 22:35:39 2012 -0700
summary:
plug ref leak
files:
Modules/zipimport.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -429,6 +429,7 @@
case 2: /* Return (None, [namespace_portion]) */
if (!(result = Py_BuildValue("O[O]", Py_None, namespace_portion)))
goto error;
+ Py_DECREF(namespace_portion);
return result;
}
/* Can't get here. */
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list