[racket] ffi/unsafe and free

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jan 25 22:01:33 EST 2012

At Thu, 26 Jan 2012 11:10:16 +1100, Neil Caldwell wrote:
> #lang racket
> (require ffi/unsafe)
> (free (malloc _pointer))

By default, `malloc' allocates memory that is managed by the Racket
garbage collector instead of the C library.

Specify 'raw mode to use the C library's malloc():

 #lang racket
 (require ffi/unsafe)

 (free (malloc _pointer 'raw))

Posted on the users mailing list.