do not free objects in pic->irep by hands

This commit is contained in:
Yuichi Nishiwaki 2014-01-18 16:59:43 +09:00
parent 82e205bbd0
commit a9574155b8
1 changed files with 1 additions and 7 deletions

View File

@ -130,6 +130,7 @@ pic_close(pic_state *pic)
free(pic->rescue); free(pic->rescue);
free(pic->globals); free(pic->globals);
free(pic->pool); free(pic->pool);
free(pic->irep);
pic->glen = 0; pic->glen = 0;
pic->rlen = 0; pic->rlen = 0;
@ -151,13 +152,6 @@ pic_close(pic_state *pic)
free(pic->sym_pool); free(pic->sym_pool);
/* free ireps */
for (i = 0; i < pic->ilen; ++i) {
free(pic->irep[i]);
}
free(pic->irep);
PIC_BLK_DECREF(pic, pic->blk); PIC_BLK_DECREF(pic, pic->blk);
free(pic); free(pic);