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: gdb-patches at sourceware dot org
- Cc: Pedro Alves <palves at redhat dot com>, Luis Machado <lgustavo at codesourcery dot com>
- Date: Wed, 17 Feb 2016 17:05:37 +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>
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.
This isn't the fix I talked about, just something I found on the way.
I didn't mean to copy everyone on this little patch :) The real fix
is coming tomorrow morning.
Cheers,
Gary
--
http://gbenson.net/