mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +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
|
@ -1931,14 +1931,20 @@ _PyStaticCode_Dealloc(PyCodeObject *co)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
_PyStaticCode_InternStrings(PyCodeObject *co)
|
||||
{
|
||||
int res = intern_strings(co->co_names);
|
||||
assert(res == 0);
|
||||
if (res < 0) {
|
||||
return -1;
|
||||
}
|
||||
res = intern_string_constants(co->co_consts, NULL);
|
||||
assert(res == 0);
|
||||
if (res < 0) {
|
||||
return -1;
|
||||
}
|
||||
res = intern_strings(co->co_localsplusnames);
|
||||
assert(res == 0);
|
||||
(void)res;
|
||||
if (res < 0) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue