ATLANTA — August had turned to September by the time the trades were announced. The midnight deadline for players acquired in waiver trades to be eligible for the postseason had come and gone. But the Pirates made two moves late Friday night to remove veterans without guaranteed contracts for next season from their roster, the night before active rosters expanded to 40 players.

The Pirates sent third baseman David Freese to the Los Angeles Dodgers, and shortstop Adeiny Hechavarria to the New York Yankees Friday night. They received 20-year-old infielder Jesus Manuel Valdez from the Dodgers and a player to be named or cash from the Yankees, and they’ll also pay some of the remainder of Hechavarria’s $5.9 million salary.

The moves signaled the Pirates’ intention to look ahead to 2019. After beating the Atlanta Braves Friday they are in fourth place at 66-69, 13 1/2 games back in the NL Central and 9 1/2 games out in the wild-card standings. By clearing two spots on the active and 40-man rosters, the Pirates can audition younger players with expanded September rosters.

“It’s just frustrating. We’re just not winning,” Freese said after Friday’s game, before the trade. “We’re fighting. But you play teams that are better than you, they come out hot and they’re going to beat you.”

Advertise with us

The Dodgers and Yankees completed the trades in time to put Freese and Hechavarria on their playoff rosters if they wish.

The Pirates signed Freese, 35, before the 2016 season and extended him that August. The 10-year veteran and 2011 World Series MVP provided leadership and perspective in the clubhouse, as well as some needed fire; upon reporting to spring training this year, he decried the lack of a wining culture in the organization.

In parts of three seasons with the Pirates, Freese had a .355 on-base percentage, a .404 slugging percentage and a .270 average. In 261 plate appearances this season, he hit .282/.336/.444 with nine home runs.

“We made the difficult decision to trade David to give him an opportunity to pursue a World Series championship this season,” general manager Neal Huntington said in a statement. “We truly appreciate all that David has contributed to the Pirates these three seasons and wish him well. This move will free up valuable playing time for some of our younger players, while clearing some salary. We are also pleased to add a player with interesting power, athleticism and defensive versatility to our system in Valdez.”

Freese was making $4.25 million this season. His contract contains a $6 million club option for 2019.

Advertise with us

Valdez had a .343 on-base percentage and .412 slugging percentage with the Dodgers’ Dominican Summer League team this season.

The Pirates acquired Hechavarria, 29, along with cash from the Tampa Bay Rays Aug. 6 in exchange for minor league right-hander Matt Seelinger. Hechavarria played 15 games for the Pirates and had a .672 on-base plus slugging percentage. He will be a free agent after this season.

Bill Brink: bbrink@post-gazette.com and Twitter @BrinkPG.