revert buffer allocation