summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/src/file.c
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-05-10 20:52:15 +0900
committerKOBAYASHI Shuji <[email protected]>2019-05-10 21:10:44 +0900
commitf2719e903aef90bc1e8c45f866abb3471c2d6e52 (patch)
treefc560e66bb7235e019f54b1e92f57a54910c393d /mrbgems/mruby-io/src/file.c
parent2e99f34fe3396913c85938bf283e77114a257619 (diff)
downloadmruby-f2719e903aef90bc1e8c45f866abb3471c2d6e52.tar.gz
mruby-f2719e903aef90bc1e8c45f866abb3471c2d6e52.zip
Move `mrb_gc_arena_restore` to inside the loop in `mrb_file_s_chmod`
Diffstat (limited to 'mrbgems/mruby-io/src/file.c')
-rw-r--r--mrbgems/mruby-io/src/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c
index b17b95e24..243f634b4 100644
--- a/mrbgems/mruby-io/src/file.c
+++ b/mrbgems/mruby-io/src/file.c
@@ -423,9 +423,9 @@ mrb_file_s_chmod(mrb_state *mrb, mrb_value klass) {
mrb_sys_fail(mrb, utf8_path);
}
mrb_locale_free(path);
+ mrb_gc_arena_restore(mrb, ai);
}
- mrb_gc_arena_restore(mrb, ai);
return mrb_fixnum_value(argc);
}