should not free mrb stack; a bug found&fixed by @miura1729

This commit is contained in:
Yukihiro Matsumoto
2012-04-20 18:54:54 +09:00
parent 1af5ac0ff4
commit 356788607b
+2 -2
View File
@@ -401,8 +401,8 @@ obj_free(mrb_state *mrb, struct RBasic *obj)
struct REnv *e = (struct REnv *)obj;
if (e->cioff < 0) {
mrb_free(mrb, mrb->stack);
mrb->stack = 0;
mrb_free(mrb, e->stack);
e->stack = 0;
}
}
break;