diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 4bb2863fae6..cc1dffb6f24 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. */