Merge pull request #1496 from cremno/bug-debug-info-free

BUG: mrb_irep_free (access of freed memory)
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-09-04 05:46:01 -07:00
+1 -2
View File
@@ -115,9 +115,8 @@ mrb_irep_free(mrb_state *mrb, struct mrb_irep *irep)
mrb_free(mrb, irep->syms);
mrb_free(mrb, (void *)irep->filename);
mrb_free(mrb, irep->lines);
mrb_free(mrb, irep);
mrb_debug_info_free(mrb, irep->debug_info);
mrb_free(mrb, irep);
}
void