aboutsummaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index ebe532f28a..6bd447b46c 100644
--- a/variable.c
+++ b/variable.c
@@ -354,6 +354,7 @@ rb_path_to_class(VALUE pathname)
rb_raise(rb_eTypeError, "%s does not refer to class/module", path);
}
}
+ RB_GC_GUARD(pathname);
return c;
}