newCString -- to 'free' or not?

Peter Simons simons at cryp.to
Sat Sep 25 16:38:17 EDT 2004


When I create a CString with Foreign.C.String.newCString, do
I have to 'free' it after I don't need it anymore? Or is
there some RTS magic taking place?

How about Foreign.Marshal.Utils.new and all those other
newXYZ functions? 

Peter



More information about the Glasgow-haskell-users mailing list