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

Alex Queiroz asandroq at gmail.com
Mon Mar 2 15:07:38 EST 2009


Hallo list,

     I have a C function like this:

___UCS_2STRING tsk_home_dir(void);

     which is exported like this:

(define home-directory (c-lambda () UCS-2-string "tsk_home_dir"))

     Everytime tsk_home_dir is called it allocates a new string. Who
must free this memory? C or Scheme?

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



More information about the Gambit-list mailing list