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.
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.