diff options
Diffstat (limited to 'gcc/mips-tdump.c')
-rw-r--r-- | gcc/mips-tdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c index 613606f2f2b..d56b6d6dc88 100644 --- a/gcc/mips-tdump.c +++ b/gcc/mips-tdump.c @@ -291,7 +291,7 @@ read_seek (ptr, size, offset, context) if (size == 0) /* nothing to read */ return ptr; - if ((ptr == (PTR_T) 0 && (ptr = malloc (size)) == (PTR_T) 0) + if ((ptr == (PTR_T) 0 && (ptr = xmalloc (size)) == (PTR_T) 0) || (tfile_offset != offset && lseek (tfile_fd, offset, 0) == -1) || (read_size = read (tfile_fd, ptr, size)) < 0) { |