use XNEW and related macros more
[deliverable/binutils-gdb.git] / gas / config / tc-rx.c
index 2c7af2077cf30a457c1cfb0216219586d396fb18..a1590acf17b3fcf9e5e129820403a5a79a4de896 100644 (file)
@@ -301,7 +301,7 @@ rx_include (int ignore)
     }
 
    current_filename = as_where (NULL);
-  f = (char *) xmalloc (strlen (current_filename) + strlen (filename) + 1);
+  f = XNEWVEC (char, strlen (current_filename) + strlen (filename) + 1);
 
   /* Check the filename.  If [@]..FILE[@] is found then replace
      this with the current assembler source filename, stripped
@@ -359,7 +359,7 @@ rx_include (int ignore)
       if (env && strlen (env) > len)
        len = strlen (env);
 
-      path = (char *) xmalloc (strlen (f) + len + 5);
+      path = XNEWVEC (char, strlen (f) + len + 5);
 
       if (current_filename != NULL)
        {
This page took 0.025188 seconds and 4 git commands to generate.