From 209e04c201613b710cafc250e449f9bd2e4cf607 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 24 May 2012 22:35:39 -0700 Subject: [PATCH] plug ref leak --- Modules/zipimport.c | 1 + 1 file changed, 1 insertion(+) 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. */