diff options
author | Brett Cannon <brett@python.org> | 2012-04-15 01:35:05 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-15 01:35:05 -0400 |
commit | a2d45fe8cf0b00cc2ec7ed268ea3de424db42649 (patch) | |
tree | 5e5f200a4d4a7f3f60eca9174c48a352153d7008 /Python/pythonrun.c | |
parent | cef8d71e4c79dd3fe54f17bc20428ccb70a65314 (diff) | |
download | cpython-a2d45fe8cf0b00cc2ec7ed268ea3de424db42649.tar.gz |
Plug a refleak.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 2757eba927..b64a9bf796 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -199,8 +199,6 @@ import_init(PyInterpreterState *interp, PyObject *sysmod) 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 @@ import_init(PyInterpreterState *interp, PyObject *sysmod) Py_FatalError("Py_Initialize: importlib install failed"); } Py_DECREF(value); + Py_DECREF(impmod); _PyImportZip_Init(); } |