summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/variable.c b/variable.c
index ef1c914df3..6ddbd71390 100644
--- a/variable.c
+++ b/variable.c
@@ -1495,9 +1495,7 @@ autoload_delete(VALUE mod, ID id)
if (tbl->num_entries == 0) {
n = autoload;
- st_delete(RCLASS_CONST_TBL(mod), &n, &val);
- ce = (rb_const_entry_t*)val;
- if (ce) xfree(ce);
+ st_delete(RCLASS_IV_TBL(mod), &n, &val);
}
}