Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free iv index table #4314

Merged
merged 1 commit into from
Mar 23, 2021
Merged

Free iv index table #4314

merged 1 commit into from
Mar 23, 2021

Conversation

tenderlove
Copy link
Member

IV index tables weren't being freed. This program would leak memory:

loop do
  k = Class.new do
    def initialize
      @a = 1
      @b = 1
      @c = 1
      @d = 1
      @e = 1
      @f = 1
      @g = 1
    end
  end
  k.new
end

This commit fixes the leak.

IV index tables weren't being freed.  This program would leak memory:

```ruby
loop do
  k = Class.new do
    def initialize
      @A = 1
      @b = 1
      @c = 1
      @d = 1
      @e = 1
      @f = 1
      @g = 1
    end
  end
  k.new
end
```

This commit fixes the leak.
@tenderlove tenderlove merged commit 417c648 into ruby:master Mar 23, 2021
@tenderlove tenderlove deleted the free-iv-index-tables branch March 23, 2021 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants