[RFA] Fix a bunch of python leaks due to missing calls to tp_free in *_dealloc functions.
Tom Tromey
tom@tromey.com
Mon Nov 18 19:01:00 GMT 2019
>>>>> "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:
Philippe> Most of the leaks in python tests are due to the fact that many
Philippe> PyObject xxxxx_dealloc functions are missing the line to free self
Philippe> or obj such as:
Philippe> Py_TYPE (self)->tp_free (self);
Philippe> or
Philippe> Py_TYPE (obj)->tp_free (obj);
Philippe> With this patch, the number of python tests leaking decreases from 52 to 12.
Thank you. This is ok.
Tom
More information about the Gdb-patches
mailing list