aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tccpp.c b/tccpp.c
index 82168f7..45e394f 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -3165,7 +3165,10 @@ ST_FUNC void preprocess_new(void)
isidnum_table[i-CH_EOF] = isid(i) || isnum(i);
/* add all tokens */
- table_ident = NULL;
+ if (table_ident) {
+ tcc_free (table_ident);
+ table_ident = NULL;
+ }
memset(hash_ident, 0, TOK_HASH_SIZE * sizeof(TokenSym *));
tok_ident = TOK_IDENT;