This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 11/14] Changes to solib-spu.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 17 Jul 2013 12:54:47 -0600
- Subject: Re: [RFA 11/14] Changes to solib-spu.c
- References: <20130711103144 dot GA5707 at blade dot nx> <20130711104222 dot GL5707 at blade dot nx>
>>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:
Gary> diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c
Gary> index 626cc8f..4d0d800 100644
Gary> --- a/gdb/solib-spu.c
Gary> +++ b/gdb/solib-spu.c
Gary> @@ -241,6 +241,7 @@ spu_free_so (struct so_list *so)
Gary> {
Gary> if (so->so_original_name[0] != '@')
Gary> svr4_so_ops.free_so (so);
Gary> + xfree (so);
This can double-free SO, in the case where svr4_so_ops.free_so is
called.
Tom