Finalizers and FFI

Gracjan Polak gracjan at
Fri Jun 11 10:11:27 EDT 2004

Arjan van IJzendoorn wrote:
 > foreign import ccall "..." finaliserCreator :: IO (FunPtr (Ptr a -> 
IO ()))
 > and then
 > finaliser <- finaliserCreator

AFAIK this creates some dynamic machine code in malloce'd area, so there 
is need to free it afterward with freeHaskellFunPtr. Are you doing that? 
How? And when? I did not find any suitable place in my code to call 

Pozdrawiam, Regards,

More information about the Glasgow-haskell-users mailing list