cpython: fd0842f34602 (original) (raw)

Mercurial > cpython

changeset 105396:fd0842f34602 2.7

Issue #24469: Fixed memory leak caused by int subclasses without overridden tp_free (e.g. C-inherited Cython classes). [#24469]

Serhiy Storchaka storchaka@gmail.com
date Tue, 29 Nov 2016 20:49:14 +0200
parents 59bd48afa1bc
children 4f24641cd030
files Misc/NEWS Objects/intobject.c
diffstat 2 files changed, 3 insertions(+), 8 deletions(-)[+] [-] Misc/NEWS 3 Objects/intobject.c 8

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 2.7.13? Core and Builtins ----------------- +- Issue #24469: Fixed memory leak caused by int subclasses without overridden

--- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -139,13 +139,6 @@ int_dealloc(PyIntObject *v) Py_TYPE(v)->tp_free((PyObject *)v); } -static void -int_free(PyIntObject *v) -{

-} - long PyInt_AsLong(register PyObject op) { @@ -1451,7 +1444,6 @@ PyTypeObject PyInt_Type = { 0, / tp_init / 0, / tp_alloc / int_new, / tp_new */

}; int