AP sources: Locke, McGowan agree with Marlins

FILE - In this July 1, 2016, file photo, Pittsburgh Pirates pitcher Jeff Locke works against the Oakland Athletics in the first inning of a baseball game, in Oakland, Calif. Two people familiar with the negotiations say left-hander Jeff Locke has agreed to a one-year contract with the Miami Marlins worth $3,025,000. The people spoke on condition of anonymity Wednesday, Dec. 7, 2016, because the agreement was subject to a physical and had not been announced.(AP Photo/Ben Margot, File)
Ben Margot/AP

OXON HILL, Md. (AP) Left-hander Jeff Locke has agreed to a one-year contract with the Miami Marlins worth $3,025,000, according to two people familiar with the negotiations.

In addition, the Marlins agreed to a one-year contract to keep right-hander Dustin McGowan, one of the people said.

The people spoke on condition of anonymity Wednesday because the agreements had not been announced.

The 29-year-old Locke had spent his entire big league career with Pittsburgh and was 9-8 with a 5.44 ERA this year in 19 starts and 11 relief appearances, his highest ERA since 2012.

His best season was 2013, when he went 10-7 with a 3.52 ERA in 30 starts, earning a spot on the NL All-Star roster.

Locke gets the same salary he had this year with the Pirates. He became a free agent when Pittsburgh failed to offer a contract by the Dec. 2 deadline.

McGowan, 34, had a 2.82 ERA in his first season with the Marlins, striking out 63 in 67 innings.