File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ What's New in Python 2.7.13?
10
10
Core and Builtins
11
11
-----------------
12
12
13
+ - Issue #24469: Fixed memory leak caused by int subclasses without overridden
14
+ tp_free (e.g. C-inherited Cython classes).
15
+
13
16
- Issue #19398: Extra slash no longer added to sys.path components in case of
14
17
empty compile-time PYTHONPATH components.
15
18
Original file line number Diff line number Diff line change @@ -139,13 +139,6 @@ int_dealloc(PyIntObject *v)
139
139
Py_TYPE (v )-> tp_free ((PyObject * )v );
140
140
}
141
141
142
- static void
143
- int_free (PyIntObject * v )
144
- {
145
- Py_TYPE (v ) = (struct _typeobject * )free_list ;
146
- free_list = v ;
147
- }
148
-
149
142
long
150
143
PyInt_AsLong (register PyObject * op )
151
144
{
@@ -1451,7 +1444,6 @@ PyTypeObject PyInt_Type = {
1451
1444
0 , /* tp_init */
1452
1445
0 , /* tp_alloc */
1453
1446
int_new , /* tp_new */
1454
- (freefunc )int_free , /* tp_free */
1455
1447
};
1456
1448
1457
1449
int
You can’t perform that action at this time.
0 commit comments