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:
Peter Zhu 2025-08-05 11:05:23 -04:00
parent 0e33256c8e
commit 95320f1ddf
3 changed files with 16 additions and 0 deletions

1
vm.c
View file

@ -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();