From: Richard Earnshaw Date: Fri, 4 Apr 2003 12:37:13 +0000 (+0000) Subject: * arm-tdep.c (push_stack_item): Use xmalloc. X-Git-Tag: binutils-2_14-branchpoint~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=226c7fbc4a1b19ea0a9eff38f6931753fef7298e;p=thirdparty%2Fbinutils-gdb.git * arm-tdep.c (push_stack_item): Use xmalloc. --- 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);