mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Propagate errors (however unlikely) from _Py_Deepfreeze_Init() (GH-31596)
This commit is contained in:
parent
edbee56d69
commit
0d9b565e62
7 changed files with 25 additions and 13 deletions
|
@ -828,7 +828,9 @@ pycore_interp_init(PyThreadState *tstate)
|
|||
}
|
||||
// Intern strings in deep-frozen modules first so that others
|
||||
// can use it instead of creating a heap allocated string.
|
||||
_Py_Deepfreeze_Init();
|
||||
if (_Py_Deepfreeze_Init() < 0) {
|
||||
return _PyStatus_ERR("failed to initialize deep-frozen modules");
|
||||
}
|
||||
|
||||
status = pycore_init_types(interp);
|
||||
if (_PyStatus_EXCEPTION(status)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue