El Domingo, 25 de Octubre de 2009, Bertram Scharpf escribi > Hi, > > Am Sonntag, 25. Okt 2009, 00:32:43 +0900 schrieb Iñáki Baz Castillo: > > El SáÃado, 24 de Octubre de 2009, Bertram Scharpf escribi > > > > It's a small piece of C code, no more. Do you mean that I shouldn't use > > "malloc"/"free" in a Ruby C extension? > > README.EXT recommends to allocate space by the ALLOC() macro which > calls Ruby's xmalloc(). I cannot find an xfree() call there; I > admit I do not understand that. Note that I use "malloc" jsut for pure C usage, this is, I don't allocate memory for Ruby objects and so... Anyhow, I've read this interesting mail (from 2002 however) in which the author recommends to use "malloc/free" rather tahn ALLOW: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/47669 Regards. -- Iki Baz Castillo <ibc / aliax.net>