Remove read_memory_string
[deliverable/binutils-gdb.git] / gdb / ada-valprint.c
index a36e7ca793a396e65d421e1dfd43ee8702842eb4..61893d5cad3fe2dbfcef0582101e51a03de8b911 100644 (file)
@@ -754,10 +754,10 @@ ada_value_print_ptr (struct value *val,
   struct type *type = ada_check_typedef (value_type (val));
   if (ada_is_tag_type (type))
     {
-      const char *name = ada_tag_name (val);
+      gdb::unique_xmalloc_ptr<char> name = ada_tag_name (val);
 
       if (name != NULL)
-       fprintf_filtered (stream, " (%s)", name);
+       fprintf_filtered (stream, " (%s)", name.get ());
     }
 }
 
This page took 0.024458 seconds and 4 git commands to generate.