Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git] / gdb / common / format.c
index deea93ca9536be8d616164b93d1fe255f19b764b..1602e53a295b36d443af221d580ec2cfe2c31dbc 100644 (file)
@@ -103,8 +103,7 @@ parse_format_string (const char **arg)
 
   max_pieces = strlen (string) + 2;
 
-  pieces = (struct format_piece *)
-    xmalloc (max_pieces * sizeof (struct format_piece));
+  pieces = XNEWVEC (struct format_piece, max_pieces);
 
   next_frag = 0;
 
This page took 0.023884 seconds and 4 git commands to generate.