Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 76314:c7bf93802f5d
Plug a refleak.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Sun, 15 Apr 2012 01:35:05 -0400 |
| parents | 2dd046be2c88 |
| children | d777f854a66e |
line wrap: on
line diff
--- a/Python/pythonrun.c Sat Apr 14 21:58:33 2012 -0400 +++ b/Python/pythonrun.c Sun Apr 15 01:35:05 2012 -0400 @@ -199,8 +199,6 @@ PyObject *value; /* Import _importlib through its frozen version, _frozen_importlib. */ - /* XXX(bcannon): The file path for _frozen_importlib is completely off - */ if (PyImport_ImportFrozenModule("_frozen_importlib") <= 0) { Py_FatalError("Py_Initialize: can't import _frozen_importlib"); } @@ -237,6 +235,7 @@ Py_FatalError("Py_Initialize: importlib install failed"); } Py_DECREF(value); + Py_DECREF(impmod); _PyImportZip_Init(); }
