projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be33c5d
)
* arm-tdep.c (push_stack_item): Use xmalloc.
author
Richard Earnshaw
<richard.earnshaw@arm.com>
Fri, 4 Apr 2003 12:37:13 +0000
(12:37 +0000)
committer
Richard Earnshaw
<richard.earnshaw@arm.com>
Fri, 4 Apr 2003 12:37:13 +0000
(12:37 +0000)
gdb/arm-tdep.c
patch
|
blob
|
history
diff --git
a/gdb/arm-tdep.c
b/gdb/arm-tdep.c
index 21d84887d7a140f1c3cea8bee73a6e29d21b87af..396859238ae85974edb2f8d450d7523ae7a3d195 100644
(file)
--- 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 =
x
malloc (len);
si->len = len;
si->prev = prev;
memcpy (si->data, contents, len);