* arm-tdep.c (push_stack_item): Use xmalloc.
This commit is contained in:
parent
be33c5dd4d
commit
226c7fbc4a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue