Should delete `buffer`.