Fix access of an already freed memory.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 24 Nov 2008 17:05:43 +0000 (17:05 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 24 Nov 2008 17:05:43 +0000 (17:05 +0000)
commita0b7aece708587e6c4a33d9c62fd0fe73b990b6b
tree2444e61df22afca27ae6618b923afff1919e7d8c
parentd962ef8246f50ac5726c6b82881074ccab47f822
Fix access of an already freed memory.
* parse.c (parse_field_expression): Call xstrdup on `*name'.
* completer.c (expression_completer): Free fieldname.
gdb/ChangeLog
gdb/completer.c
gdb/parse.c