El SáÃado, 24 de Octubre de 2009, Yukihiro Matsumoto escribi > Hi, > > In message "Re: C extension: "malloc" and "rb_raise"" > > on Sat, 24 Oct 2009 08:43:32 +0900, Iki Baz Castillo <ibc / aliax.net> 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. Thanks for clarify it. So I must use free() before rb_raise(). Regards. -- Iki Baz Castillo <ibc / aliax.net>