From a9574155b8a01e05255a007bec99a92c36d694cc Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 18 Jan 2014 16:59:43 +0900 Subject: [PATCH] do not free objects in pic->irep by hands --- src/state.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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);