Package: cffi

Function foreign-free

Lambda List

foreign-free (ptr)

Arguments

ptr -- A foreign pointer.

Details

The foreign-free function frees a ptr previously allocated by foreign-alloc. The consequences of freeing a given pointer twice are undefined.

Examples

  CFFI> (foreign-alloc :int)
  => #<A Mac Pointer #x1022E0>
  CFFI> (foreign-free *)
  => NIL  
 

See also