gas/arc: Fix array overrun when checking opcode array
[deliverable/binutils-gdb.git] / gas / depend.c
index 2dd35a4470c67b0c7011b67a317019607053c3e1..7203e59746f0d11e49340f263712a6c150dbca2f 100644 (file)
@@ -67,7 +67,7 @@ register_dependency (const char *filename)
        return;
     }
 
-  dep = (struct dependency *) xmalloc (sizeof (struct dependency));
+  dep = XNEW (struct dependency);
   dep->file = xstrdup (filename);
   dep->next = dep_chain;
   dep_chain = dep;
This page took 0.023461 seconds and 4 git commands to generate.