Penalties nearly cost the Longhorns a victory on Saturday.