Actions
Bug #21173
openRUBY_FREE_AT_EXIT does not work when error in -r
Description
PR: https://github.com/ruby/ruby/pull/12859
When loading a file using the command line -r, it is processed before RUBY_FREE_AT_EXIT is checked. So if the loaded file raises an error, it will cause memory to not be freed with RUBY_FREE_AT_EXIT.
For example ruby -rtest.rb -e ""
will report a large amount of memory leaks if test.rb
raises.
No data to display
Actions
Like0