diff --git a/src/state.c b/src/state.c index a5240ab5..4244fd54 100644 --- a/src/state.c +++ b/src/state.c @@ -130,6 +130,7 @@ pic_close(pic_state *pic) free(pic->rescue); free(pic->globals); free(pic->pool); + free(pic->irep); pic->glen = 0; pic->rlen = 0; @@ -151,13 +152,6 @@ pic_close(pic_state *pic) 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); free(pic);