In which we learn about the two kinds of memory leaks, and how to use Valgrind on Ruby 1.8.6. If you just came for the patch, it’s here. remedial leaking A Ruby application can leak memory in two ways. First, it can leak space on the Ruby heap. This happens when a Ruby object does not go out of scope in your app. The Ruby garbage collector is aware of the object, but it is not allowed to garbage c