This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix completer access of an already freed memory
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 24 Nov 2008 09:32:54 -0700
- Subject: Re: [patch] Fix completer access of an already freed memory
- References: <20081122231304.GA12471@host0.dyn.jankratochvil.net>
- Reply-to: tromey at redhat dot com
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> 2008-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> Fix access of an already freed memory.
Jan> * parse.c (parse_field_expression): Call xstrdup on `*name'.
Jan> * completer.c (expression_completer): Free fieldname.
Thanks. FWIW, this looks reasonable to me. I can't approve it though.
Tom