mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
merge revision(s) ef59175a68
: [Backport #19903]
fix iseq kwargs table and original_iseq leaks [bug #19903] Co-authored-by: Peter Zhu <peter@peterzhu.ca> --- iseq.c | 4 ++++ 1 file changed, 4 insertions(+)
This commit is contained in:
parent
a191cf5617
commit
128d8728d3
2 changed files with 5 additions and 1 deletions
4
iseq.c
4
iseq.c
|
@ -187,7 +187,11 @@ rb_iseq_free(const rb_iseq_t *iseq)
|
|||
ruby_xfree((void *)body->mark_bits.list);
|
||||
}
|
||||
|
||||
ruby_xfree(body->variable.original_iseq);
|
||||
|
||||
if (body->param.keyword != NULL) {
|
||||
if (body->param.keyword->table != &body->local_table[body->param.keyword->bits_start - body->param.keyword->num])
|
||||
ruby_xfree((void *)body->param.keyword->table);
|
||||
ruby_xfree((void *)body->param.keyword->default_values);
|
||||
ruby_xfree((void *)body->param.keyword);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue