[racket-dev] Windows ffi's 'malloc raw' can't be paired with C 'free'

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Oct 18 18:40:59 EDT 2011

At Tue, 18 Oct 2011 15:39:13 -0700, John Clements wrote:
> 1) This is only a problem under Windows, right?

Yes.

> 2) It looks to me like there's an easy workaround in my case, which is simply 
> to put the 'malloc' on the C side in a one-line stub function. Right?

Yes --- a malloc() in the same extension that wants to use free().



Posted on the dev mailing list.