[gambit-list] Who must free the string memory?

Alex Queiroz asandroq at gmail.com
Wed Mar 11 10:03:54 EDT 2009


Hallo,

On Wed, Mar 11, 2009 at 11:00 AM, Jeremie Lasalle Ratelle
<pouexmachinax at gmail.com> wrote:
>
>>     Everytime tsk_home_dir is called it allocates a new string. Who
>> must free this memory? C or Scheme?
>
> From the gambit-c manual : Any C string type passed to the Scheme
> environment causes the creation of a fresh Scheme string containing a copy
> of the C string...

     And I thought I read the whole C interface part! Thanks :)

-- 
-alex
http://www.ventonegro.org/



More information about the Gambit-list mailing list