From 226c7fbc4a1b19ea0a9eff38f6931753fef7298e Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Fri, 4 Apr 2003 12:37:13 +0000 Subject: [PATCH] * arm-tdep.c (push_stack_item): Use xmalloc. --- gdb/arm-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 21d84887d7a..396859238ae 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); -- 2.30.2