Change openp et al to use a unique_xmalloc_ptr
[deliverable/binutils-gdb.git] / gdb / nto-tdep.c
index 30db99c759d37e2a2765a33b4981016015929946..8eb864b871b2f1d43ac2b22b4abcc8f3b1f94149 100644 (file)
@@ -89,7 +89,7 @@ nto_map_arch_to_cputype (const char *arch)
 
 int
 nto_find_and_open_solib (const char *solib, unsigned o_flags,
-                        char **temp_pathname)
+                        gdb::unique_xmalloc_ptr<char> *temp_pathname)
 {
   char *buf, *arch_path, *nto_root;
   const char *endian;
@@ -143,9 +143,9 @@ nto_find_and_open_solib (const char *solib, unsigned o_flags,
       if (temp_pathname)
        {
          if (ret >= 0)
-           *temp_pathname = gdb_realpath (arch_path).release ();
+           *temp_pathname = gdb_realpath (arch_path);
          else
-           *temp_pathname = NULL;
+           temp_pathname->reset (NULL);
        }
     }
   return ret;
This page took 0.024905 seconds and 4 git commands to generate.