Restore GC arena after raised exceptions; ref #4042

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-06-14 11:42:34 +09:00
parent ba090a46af
commit 97933665b6
+1
View File
@@ -1002,6 +1002,7 @@ RETRY_TRY_BLOCK:
if (exc_catched) {
exc_catched = FALSE;
mrb_gc_arena_restore(mrb, ai);
if (mrb->exc && mrb->exc->tt == MRB_TT_BREAK)
goto L_BREAK;
goto L_RAISE;