diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-13 16:01:30 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-13 16:01:30 +0900 |
| commit | 4e357a4963e45a1d32d96a1ee1f1c90f246df3a6 (patch) | |
| tree | 63137c8833d7f21152b87177dc0bc98de0937f38 /src | |
| parent | 5867167ffd72f084dc24c76c0b60cab399682356 (diff) | |
| download | mruby-4e357a4963e45a1d32d96a1ee1f1c90f246df3a6.tar.gz mruby-4e357a4963e45a1d32d96a1ee1f1c90f246df3a6.zip | |
protect argument array from GC in OP_ENTER
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1304,6 +1304,7 @@ RETRY_TRY_BLOCK: } } else if (len > 1 && argc == 1 && mrb_array_p(argv[0])) { + mrb_gc_protect(mrb, argv[0]); argc = mrb_ary_ptr(argv[0])->len; argv = mrb_ary_ptr(argv[0])->ptr; } |
