Save foo return value, then delete[] it