This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: fix memory leak in "source" command
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, Tom Tromey <tromey at redhat dot com>
- Date: Mon, 10 Nov 2008 20:28:07 +0000
- Subject: Re: RFA: fix memory leak in "source" command
- References: <m3myg7jrtm.fsf@fleche.redhat.com>
On Monday 10 November 2008 19:37:09, Tom Tromey wrote:
> Valgrind pointed out that the "source" command leaks full_pathname.
>
> The fix is to add a cleanup for it. This patch also makes sure to run
> the cleanups on early return from the function.
>
> Built and regested on x86-64 (compile farm).
> Ok?
>
Ok,
:REVIEWMAIL:
--
Pedro Alves