diff options
| author | grischka <grischka> | 2012-04-18 18:43:55 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2012-04-18 18:43:55 +0200 |
| commit | f1b5c2ef4fc1d43c5a73e15854d094e9219857bf (patch) | |
| tree | 00d881305eb5b6b96544047bac495072f5e527a2 /tccelf.c | |
| parent | 3c59f8424048fdc2f7b7ce8d840351ef2fb212b4 (diff) | |
| download | tinycc-f1b5c2ef4fc1d43c5a73e15854d094e9219857bf.tar.gz tinycc-f1b5c2ef4fc1d43c5a73e15854d094e9219857bf.tar.bz2 | |
tcc_realloc: auto "memory full" error
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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)); |
