mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix RUBY_FREE_AT_EXIT for static symbols
Since static symbols allocate memory, we should deallocate them at shutdown to prevent memory leaks from being reported with RUBY_FREE_AT_EXIT.
This commit is contained in:
parent
0e33256c8e
commit
95320f1ddf
3 changed files with 16 additions and 0 deletions
1
vm.c
1
vm.c
|
@ -3146,6 +3146,7 @@ ruby_vm_destruct(rb_vm_t *vm)
|
|||
rb_free_encoded_insn_data();
|
||||
rb_free_global_enc_table();
|
||||
rb_free_loaded_builtin_table();
|
||||
rb_free_global_symbol_table();
|
||||
|
||||
rb_free_shared_fiber_pool();
|
||||
rb_free_transcoder_table();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue