Re: [RFA] Fix leaks of 'per program space' and 'per inferior' ada task data.

Tom Tromey
2019-02-17T23:31:20Z

>>>>> "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:

Philippe> + if (data != NULL)
Philippe> + XDELETE (data);

gdb normally uses "xfree" and not XDELETE.
Also the NULL check isn't needed.

Philippe> + if (data != NULL)
Philippe> + delete data;

You don't need the NULL check here either.

This is ok with these changes. Thank you for the patch.

Tom