* arm-tdep.c (push_stack_item): Use xmalloc.
authorRichard Earnshaw <richard.earnshaw@arm.com>
Fri, 4 Apr 2003 12:37:13 +0000 (12:37 +0000)
committerRichard Earnshaw <richard.earnshaw@arm.com>
Fri, 4 Apr 2003 12:37:13 +0000 (12:37 +0000)
gdb/arm-tdep.c

index 21d8488..3968592 100644 (file)
@@ -1383,7 +1383,7 @@ push_stack_item (struct stack_item *prev, void *contents, int len)
 {
   struct stack_item *si;
   si = xmalloc (sizeof (struct stack_item));
-  si->data = malloc (len);
+  si->data = xmalloc (len);
   si->len = len;
   si->prev = prev;
   memcpy (si->data, contents, len);