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)) ____________________ Racket Users list: http://lists.racket-lang.org/users