mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +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((void *)body->mark_bits.list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ruby_xfree(body->variable.original_iseq);
|
||||||
|
|
||||||
if (body->param.keyword != NULL) {
|
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->default_values);
|
||||||
ruby_xfree((void *)body->param.keyword);
|
ruby_xfree((void *)body->param.keyword);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
||||||
#define RUBY_VERSION_TEENY 2
|
#define RUBY_VERSION_TEENY 2
|
||||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||||
#define RUBY_PATCHLEVEL 123
|
#define RUBY_PATCHLEVEL 124
|
||||||
|
|
||||||
#include "ruby/version.h"
|
#include "ruby/version.h"
|
||||||
#include "ruby/internal/abi.h"
|
#include "ruby/internal/abi.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue