From: Yukihiro Matsumoto Date: 2008-05-10T12:36:04+09:00 Subject: Re: Do strings from rb_str_new and friends need to be free'd? 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" 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.