some of global tables are missed to free

This commit is contained in:
Yuichi Nishiwaki 2014-01-30 14:34:09 +09:00
parent e8258edfa7
commit 1d2fa33372
1 changed files with 3 additions and 1 deletions

View File

@ -134,6 +134,9 @@ pic_close(pic_state *pic)
free(pic->rescue);
free(pic->globals);
xh_destroy(pic->sym_tbl);
xh_destroy(pic->global_tbl);
pic->glen = 0;
pic->rlen = 0;
pic->arena_idx = 0;
@ -150,7 +153,6 @@ pic_close(pic_state *pic)
for (i = 0; i < pic->slen; ++i) {
free((void *)pic->sym_pool[i]);
}
free(pic->sym_pool);
PIC_BLK_DECREF(pic, pic->blk);