we must release the buffer here, as we won't use it anymore