avs: call release_buffer() at the end.