Next: foreign-alloc, Previous: Accessing Foreign Memory, Up: Pointers
The foreign-free function frees a ptr previously allocated by foreign-alloc. The consequences of freeing a given pointer twice are undefined.
foreign-free
ptr
foreign-alloc
CFFI> (foreign-alloc :int) => #<A Mac Pointer #x1022E0> CFFI> (foreign-free *) => NIL
foreign-alloc with-foreign-pointer