This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [OB PATCH] Add missing cleanup in exec_file_locate_attach
- From: Gary Benson <gbenson at redhat dot com>
- To: Luis Machado <lgustavo at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, Pedro Alves <palves at redhat dot com>
- Date: Thu, 18 Feb 2016 09:54:42 +0000
- Subject: Re: [OB PATCH] Add missing cleanup in exec_file_locate_attach
- Authentication-results: sourceware.org; auth=none
- References: <20160217135324 dot GC24631 at blade dot nx> <1455728537-27577-1-git-send-email-gbenson at redhat dot com> <56C4B7AA dot 60308 at codesourcery dot com>
Luis Machado wrote:
> On 02/17/2016 03:02 PM, Gary Benson wrote:
> > exec_file_locate_attach allocates memory for full_exec_path (using
> > either exec_file_find, source_full_path_of or xstrdup) but this
> > memory is never freed. This commit adds the necessary cleanup.
> >
> > Pushed as obvious.
>
> Well spotted!
Thanks :)
Cheers,
Gary
--
http://gbenson.net/