aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtcc.c b/libtcc.c
index 4bb7f1b..dc01831 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -879,10 +879,10 @@ static void tcc_cleanup(void)
/* free tokens */
n = tok_ident - TOK_IDENT;
for(i = 0; i < n; i++){
- def = &table_ident[i]->sym_define;
- tcc_free(def->data);
+ def = &table_ident[i]->sym_define;
+ tcc_free(def->data);
tcc_free(table_ident[i]);
- }
+ }
tcc_free(table_ident);
/* free sym_pools */