Don't use a buffer after it goes out of scope.