Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git] / gdb / macrocmd.c
index 3db1239f2419defd6c19af8f01d738da15bf30ad..2eb9dffd4fc46637a426576f4778302760ba12eb 100644 (file)
@@ -387,7 +387,7 @@ macro_define_command (char *exp, int from_tty)
     {
       /* Function-like macro.  */
       int alloced = 5;
-      char **argv = (char **) xmalloc (alloced * sizeof (char *));
+      char **argv = XNEWVEC (char *, alloced);
 
       new_macro.kind = macro_function_like;
       new_macro.argc = 0;
This page took 0.024068 seconds and 4 git commands to generate.