Skip to content
Browse files
add temporary workaround for irep memory corruption
need to find out real memory bug that appears in full-debug/mrbtest
  • Loading branch information
matz committed Jun 10, 2016
1 parent 6b0299f commit 8dde647a512e5f3ff08e40edbd7a8b7eeb934071
Showing 1 changed file with 1 addition and 1 deletion.
@@ -141,7 +141,7 @@ mrb_irep_free(mrb_state *mrb, mrb_irep *irep)

if (!(irep->flags & MRB_ISEQ_NO_FREE))
mrb_free(mrb, irep->iseq);
for (i=0; i<irep->plen; i++) {
if (irep->pool) for (i=0; i<irep->plen; i++) {
if (mrb_type(irep->pool[i]) == MRB_TT_STRING) {
mrb_gc_free_str(mrb, RSTRING(irep->pool[i]));
mrb_free(mrb, mrb_obj_ptr(irep->pool[i]));

0 comments on commit 8dde647

Please sign in to comment.