Unverified Commit 4601ac7f authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4429 from shuujii/move-mrb_gc_arena_restore-into-loop-in-mrb_file_s_chmod

Move `mrb_gc_arena_restore` to inside the loop in `mrb_file_s_chmod`
parents 2e99f34f f2719e90
...@@ -423,9 +423,9 @@ mrb_file_s_chmod(mrb_state *mrb, mrb_value klass) { ...@@ -423,9 +423,9 @@ mrb_file_s_chmod(mrb_state *mrb, mrb_value klass) {
mrb_sys_fail(mrb, utf8_path); mrb_sys_fail(mrb, utf8_path);
} }
mrb_locale_free(path); mrb_locale_free(path);
mrb_gc_arena_restore(mrb, ai);
} }
mrb_gc_arena_restore(mrb, ai);
return mrb_fixnum_value(argc); return mrb_fixnum_value(argc);
} }
......
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