Project

General

Profile

Actions

Bug #21173

open

RUBY_FREE_AT_EXIT does not work when error in -r

Added by peterzhu2118 (Peter Zhu) about 17 hours ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:121247]

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

Also available in: Atom PDF

Like0