commit | a1e9ec4e5515ef60cd1468832e98ba77c9ce29cb | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Thu Nov 15 19:16:08 2007 +0000 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Thu Nov 15 19:16:08 2007 +0000 |
tree | 9767ce674312d3f2d4c8409771d15c097e9d9bf5 | |
parent | a041ba56fb208e86a7e1dcc6f1449c4741bd0683 [diff] [blame] |
Correct a memory leak: the range() object was not properly freed.
diff --git a/Objects/object.c b/Objects/object.c index df93a19..fa5eb4d 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -1509,6 +1509,9 @@ if (PyType_Ready(&PyStdPrinter_Type) < 0) Py_FatalError("Can't initialize StdPrinter"); + + if (PyType_Ready(&PyRange_Type) < 0) + Py_FatalError("Can't initialize 'range'"); }