summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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. */