SAN DIEGO — Padres starter Jarred Cosart left Wednesday night’s game against the Boston Red Sox in the fourth inning after straining his right hamstring and groin.

Cosart landed awkwardly after leaping to catch an erratic throw while covering first base on Jackie Bradley Jr.’s grounder to first baseman Wil Myers.

Carlos Villanueva relieved Cosart with the game tied 2-2.