simplify release_buffer using FFSWAP