diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-11 22:13:46 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-11 22:14:56 +0900 |
| commit | 472dba19ea13e8403667f530ce40e16dcd1bdee1 (patch) | |
| tree | 178c5e4aaa84caf7989e793258cf7d1ee3dd5f99 /src/variable.c | |
| parent | 037638335430de0d35d377af3e393c2aeab9451c (diff) | |
| download | mruby-472dba19ea13e8403667f530ce40e16dcd1bdee1.tar.gz mruby-472dba19ea13e8403667f530ce40e16dcd1bdee1.zip | |
Revert "Should have cleared `mrb->globals` in `mrb_gc_free_gv`; fix #4618"
This reverts commit 3dc8d9d7b3d0be2f91fa050a13e3b422500df628.
Diffstat (limited to 'src/variable.c')
| -rw-r--r-- | src/variable.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/variable.c b/src/variable.c index ab3bea327..32416da4e 100644 --- a/src/variable.c +++ b/src/variable.c @@ -268,10 +268,8 @@ mrb_gc_mark_gv(mrb_state *mrb) void mrb_gc_free_gv(mrb_state *mrb) { - if (mrb->globals) { + if (mrb->globals) iv_free(mrb, mrb->globals); - mrb->globals = NULL; - } } void |
