aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2003-04-04 12:37:13 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2003-04-04 12:37:13 +0000
commit226c7fbc4a1b19ea0a9eff38f6931753fef7298e (patch)
treebb19b12d119d827817a25322ca86408912145b44 /gdb
parentbe33c5dd4d463877c8412bfc0416a75d27008598 (diff)
downloadgdb-226c7fbc4a1b19ea0a9eff38f6931753fef7298e.zip
gdb-226c7fbc4a1b19ea0a9eff38f6931753fef7298e.tar.gz
gdb-226c7fbc4a1b19ea0a9eff38f6931753fef7298e.tar.bz2
* arm-tdep.c (push_stack_item): Use xmalloc.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/arm-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 21d8488..3968592 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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);