Fix capacity reporting in buffer_destroy deallocate