mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Plug a refleak.
This commit is contained in:
parent
2a082add9d
commit
fc9ca274b8
1 changed files with 1 additions and 2 deletions
|
@ -199,8 +199,6 @@ import_init(PyInterpreterState *interp, PyObject *sysmod)
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
|
|
||||||
/* Import _importlib through its frozen version, _frozen_importlib. */
|
/* 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) {
|
if (PyImport_ImportFrozenModule("_frozen_importlib") <= 0) {
|
||||||
Py_FatalError("Py_Initialize: can't import _frozen_importlib");
|
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_FatalError("Py_Initialize: importlib install failed");
|
||||||
}
|
}
|
||||||
Py_DECREF(value);
|
Py_DECREF(value);
|
||||||
|
Py_DECREF(impmod);
|
||||||
|
|
||||||
_PyImportZip_Init();
|
_PyImportZip_Init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue