This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix leak of struct call_thread_fsm in call_function_by_hand_dummy.
- From: Tom Tromey <tom at tromey dot com>
- To: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 02 Jan 2019 11:54:23 -0700
- Subject: Re: [RFA] Fix leak of struct call_thread_fsm in call_function_by_hand_dummy.
- References: <20190102171435.20402-1-philippe.waroquiers@skynet.be>
>>>>> "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:
Philippe> Fix the leak by similarly doing cleanup/destroy when restoring
Philippe> previous state machine.
Philippe> Tested on debian/amd64, natively and under valgrind.
Philippe> 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
Philippe> * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
Philippe> in case of call that did not complete.
This is ok. Thanks.
Tom