summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-05-25 05:35:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-05-25 05:35:39 (GMT)
commit209e04c201613b710cafc250e449f9bd2e4cf607 (patch)
tree648428a693754caff66091b75d02105563828391 /Modules
parent283d0ba45d66d2884ddec1085b40f3a95bd5e987 (diff)
downloadcpython-209e04c201613b710cafc250e449f9bd2e4cf607.zip
cpython-209e04c201613b710cafc250e449f9bd2e4cf607.tar.gz
cpython-209e04c201613b710cafc250e449f9bd2e4cf607.tar.bz2
plug ref leak
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zipimport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 4bb2863..cc1dffb 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -429,6 +429,7 @@ zipimporter_find_loader(PyObject *obj, PyObject *args)
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. */