aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-09-13 23:37:05 +0000
committerTom Tromey <tromey@redhat.com>2008-09-13 23:37:05 +0000
commit6c761d9c9c9271145dccec5103e8fdc4fde64e9d (patch)
tree8d989356dc93a47bcbd229b86fcf4ffd58cadf01 /gdb/varobj.c
parent339c13b662e90ae3ba32ac076a8fd6dd4548d608 (diff)
downloadgdb-6c761d9c9c9271145dccec5103e8fdc4fde64e9d.zip
gdb-6c761d9c9c9271145dccec5103e8fdc4fde64e9d.tar.gz
gdb-6c761d9c9c9271145dccec5103e8fdc4fde64e9d.tar.bz2
* varobj.c (varobj_set_display_format): Use xfree.
* tracepoint.c (stringify_collection_list): Use xfree. * remote-fileio.c (remote_fileio_reset): Use xfree. * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree. * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use asprintf. * cp-support.c (mangled_name_to_comp): Use xfree.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 35d876f..5b44eef 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -693,7 +693,7 @@ varobj_set_display_format (struct varobj *var,
if (varobj_value_is_changeable_p (var)
&& var->value && !value_lazy (var->value))
{
- free (var->print_value);
+ xfree (var->print_value);
var->print_value = value_get_print_value (var->value, var->format);
}