Why is this simple function allocating?

Thanks!