diff options
author | Peter Zhu <[email protected]> | 2025-03-05 14:22:01 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-03-06 11:58:54 -0500 |
commit | 6bad47ac6d62b54fe30e3f161c2a9d8f5fa4800c (patch) | |
tree | 2ee2dd81954e9b14fb5cf40d8eb578540dd0b546 /range.c | |
parent | bb91c303bad5fcdd59b73ca1a1923f71c7efdbfd (diff) |
RUBY_FREE_AT_EXIT does not work when error in -r
[Bug #21173]
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12859
Diffstat (limited to 'range.c')
0 files changed, 0 insertions, 0 deletions