From: Steven Kah Hien Wong Date: 2008-05-11T14:14:30+09:00 Subject: Re: Do strings from rb_str_new and friends need to be free'd? ------=_Part_10452_23983974.1210482871093 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ah, cool. Thanks, Matz! -Steven On Sat, May 10, 2008 at 1:36 PM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Do strings from rb_str_new and friends need to be free'd?" > on Sat, 10 May 2008 12:21:57 +0900, "Steven Kah Hien Wong" < > steven@zensaki.com> writes: > > |I have some C native code that calls a logging class written in Ruby. To > |pass the message string to the Ruby class, I am creating a string with > |rb_str_new2 and then passing its VALUE to rb_funcall. I am wondering if I > |need to do any clean-up for the string, or will Ruby handle this for me? > > The latter. You don't have to (and you shouldn't) free string > objects. > > matz. > > ------=_Part_10452_23983974.1210482871093--