diff options
author | Aaron Patterson <[email protected]> | 2022-11-22 13:54:30 -0800 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2022-11-22 13:54:30 -0800 |
commit | aedf682bfad425149053f58c9115bc830da4efd1 (patch) | |
tree | d378c42f413dafca25751993439a84c5086967cb /iseq.c | |
parent | 003f8ea80983d9a2c1d5352c448ad2991fb73ad7 (diff) |
Free the IV table after estimation
We need to make sure the name table is freed otherwise we have a memory
leak.
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |