From f1b5c2ef4fc1d43c5a73e15854d094e9219857bf Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 18 Apr 2012 18:43:55 +0200 Subject: tcc_realloc: auto "memory full" error --- tccelf.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index 0c764ba..04975d9 100644 --- a/tccelf.c +++ b/tccelf.c @@ -836,8 +836,6 @@ static void put_got_offset(TCCState *s1, int index, unsigned long val) while (index >= n) n *= 2; tab = tcc_realloc(s1->got_offsets, n * sizeof(unsigned long)); - if (!tab) - tcc_error("memory full"); s1->got_offsets = tab; memset(s1->got_offsets + s1->nb_got_offsets, 0, (n - s1->nb_got_offsets) * sizeof(unsigned long)); -- cgit v1.3.1