This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 11/14] Changes to solib-spu.c


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]