mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Correct a memory leak: the range() object was not properly freed.
This commit is contained in:
parent
a041ba56fb
commit
a1e9ec4e55
2 changed files with 4 additions and 0 deletions
|
@ -1509,6 +1509,9 @@ _Py_ReadyTypes(void)
|
|||
|
||||
if (PyType_Ready(&PyStdPrinter_Type) < 0)
|
||||
Py_FatalError("Can't initialize StdPrinter");
|
||||
|
||||
if (PyType_Ready(&PyRange_Type) < 0)
|
||||
Py_FatalError("Can't initialize 'range'");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue