mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 20:44:20 +00:00
Fix memory leak in invalidate_ccs_in_iclass_cc_tbl
invalidate_ccs_in_iclass_cc_tbl deletes the ccs from the table but never frees it, causing memory to leak.
This commit is contained in:
parent
14e75435ea
commit
bcfcfedc30
Notes:
git
2025-11-12 11:49:26 +00:00
@ -563,6 +563,7 @@ invalidate_ccs_in_iclass_cc_tbl(VALUE value, void *data)
|
||||
{
|
||||
struct rb_class_cc_entries *ccs = (struct rb_class_cc_entries *)value;
|
||||
vm_cme_invalidate((rb_callable_method_entry_t *)ccs->cme);
|
||||
xfree(ccs);
|
||||
return ID_TABLE_DELETE;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user