The function
free-foreign-block
frees a foreign block that was allocated by Lisp.
foreign-block
must be a result of a call to allocate-foreign-block. It is an error to call
free-foreign-block
on the result of foreign-block-copy or on a foreign block coming from foreign code.
Note that the function that was passed to allocate-foreign-block may still be invoked after
free-foreign-block
, because the block may have been copied. See the discussion in Scope of invocation.
It is an error to call
free-foreign-block
more than once on the same
foreign-block
.
To free a foreign block that was allocated by foreign code, use foreign-block-release.
free-foreign-block
is implemented in LispWorks for Macintosh only.
LispWorks Foreign Language Interface User Guide and Reference Manual - 7 Dec 2011