Almost all ruby programmers know that ruby has a garbage collector that makes it so you don't have to worry about memory management.
There's basically two ways to leak memory in ruby. Either keep a reference to an object without meaning to, or use a C extension that leaks memory.