summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 40212204a3..931546ee04 100644
--- a/gc.c
+++ b/gc.c
@@ -2047,6 +2047,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
break;
case T_ICLASS:
/* iClass shares table with the module */
+ xfree(RANY(obj)->as.klass.ptr);
break;
case T_FLOAT: