зеркало из https://github.com/github/ruby.git
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:
Родитель
003f8ea809
Коммит
aedf682bfa
2
iseq.c
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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче