[plt-scheme] FFI: manual release of "vector->cblock"?

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jul 2 11:48:20 EDT 2009

On Jul  2, Elena Garrulo wrote:
> Hello,
> do I have to call "free" on the result of "vector->cblock"

It uses `malloc', so the answer is the same.

> like I do on the result of "malloc"?

You don't need to `free' memory blocks made with `malloc' by default,
since it allocates the blocks using the GC.  You only need to use
`free' when allocating in 'raw mode which uses the C malloc() call.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.