aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorgrischka <grischka>2012-04-18 18:43:55 +0200
committergrischka <grischka>2012-04-18 18:43:55 +0200
commitf1b5c2ef4fc1d43c5a73e15854d094e9219857bf (patch)
tree00d881305eb5b6b96544047bac495072f5e527a2 /tccelf.c
parent3c59f8424048fdc2f7b7ce8d840351ef2fb212b4 (diff)
downloadtinycc-f1b5c2ef4fc1d43c5a73e15854d094e9219857bf.tar.gz
tinycc-f1b5c2ef4fc1d43c5a73e15854d094e9219857bf.tar.bz2
tcc_realloc: auto "memory full" error
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 0 insertions, 2 deletions
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));