summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 93802f4..fb221f2 100644
--- a/gc.c
+++ b/gc.c
@@ -621,7 +621,7 @@ rb_gc_mark(ptr)
case T_SCOPE:
if (obj->as.scope.local_vars &&
- obj->as.scope.flag != SCOPE_ALLOCA) {
+ (obj->as.scope.flag & SCOPE_MALLOC) != 0) {
int n = obj->as.scope.local_tbl[0]+1;
VALUE *vars = &obj->as.scope.local_vars[-1];