Commit 35678860 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

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

parent 1af5ac0f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment