Free an allocated cbuf.
This is a helping routine to deallocate memory that was allocated for the cbuf by C. (Cray compiler complained about its deallocation in Fortran)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(cbuf_type) | :: | buf |
subroutine flu_free_cbuf(buf)
type(cbuf_type) :: buf
call c_free(buf%ptr)
nullify(buf%buffer)
end subroutine flu_free_cbuf