From: Yukihiro Matsumoto Date: 2009-10-24T08:46:30+09:00 Subject: Re: C extension: "malloc" and "rb_raise" Hi, In message "Re: C extension: "malloc" and "rb_raise"" on Sat, 24 Oct 2009 08:43:32 +0900, Iņaki Baz Castillo writes: |Hi, if I use "malloc" in a Ruby C function and then call to "rb_raise" (so the |program exists), will the allocated memory be released? (if not I get a memory |leak). No. |Perhaps Ruby havs a garbage collector for C? Ruby GC only handles Ruby objects and memory regions pointed by them. matz.