Free the IV table after estimation

We need to make sure the name table is freed otherwise we have a memory
leak.
This commit is contained in:
Aaron Patterson 2022-11-22 13:54:30 -08:00
Родитель 003f8ea809
Коммит aedf682bfa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 953170BCB4FFAFC6
1 изменённых файлов: 2 добавлений и 0 удалений

2
iseq.c
Просмотреть файл

@ -2526,6 +2526,8 @@ rb_estimate_iv_count(VALUE klass, const rb_iseq_t * initialize_iseq)
count += RCLASS_EXT(superclass)->max_iv_count;
}
rb_id_table_free(iv_names);
return count;
}