How to create a memory leak in Ruby
Stuff create from a class method it will newer be released.
To run this example
$ bundle install
$ ruby collect_garbage.rb
Watch the console
Example of memory leak when creating Objects in an Class method
Stuff create from a class method it will newer be released.
To run this example
$ bundle install
$ ruby collect_garbage.rb
Watch the console
Example of memory leak when creating Objects in an Class method