ARLINGTON, Texas -- Pittsburgh reliever Mark Melancon allowed multiple runs for the first time in 65 appearances this season.
Still, he appeared to get a little extra on the pitch that ended the game, saving the Pirates' 5-4 victory over the slumping Texas Rangers on Tuesday night.
Melancon gave up four consecutive two-out singles, two of them producing runs, before striking out Adrian Beltre on three pitches with the potential tying run at third base.
"He got one of the best hitters in the game out to finish it off," Pirates manager Clint Hurdle said. "Two outs, and nobody on base, and before you know it, you've got a game out there, you've got a nail-biter on your hands at the end. ... At the end of the day, he struck out the side, with a little action in between."
A night after victory No. 82 ensured the Pirates' first winning season since 1992, they got a series-clinching victory and stayed within a game of NL Central-leading St. Louis.
"We're still hunting for more," said Jordy Mercer, who had two doubles among his four hits. "We want to get more, as much as we can, that's for sure."
Melancon struck out two pinch-hitters to start the ninth. Singles by Ian Kinsler and Alex Rios produced runs before Beltre, a .318 hitter already with two hits and an RBI, took the first pitch before swinging at the next two.
"I threw three heaters. Just getting ahead," Melancon said. "The second pitch, he fouled back, and the third pitch I don't know if he was sitting breaking ball or not, but came back with another (fastball). ... I never really lost my composure or thought any negative thoughts."
Even though it took 30 pitches to get his 13th save in 15 chances.
As for Beltre, Texas manager Ron Washington said, "We know what his track record is and what he's capable of doing. He's a guy who always rises to a challenge. I'm looking forward to him coming back."
Pittsburgh scored three runs with four consecutive two-out hits in the fifth off rookie left-hander Martin Perez (9-4), who had won his previous six starts since the beginning of August.
The Rangers, who still need another victory for their fifth consecutive winning season, will lose their fourth series in a row no matter what happens in Wednesday's finale. Texas has lost seven of its last nine games, but remained two games back in the AL West with Oakland's loss to Minnesota.
Liriano (16-7) struck out five while allowing one run to become the first Pirates left-hander since John Smiley and Zane Smith in 1991 to win more than 15 games. Liriano has received a decision in each of his 23 starts since signing as a free agent in February, the most for the Pirates since Larry French got a decision in each of his first 24 starts in 1930.
"Not his finest outing. A blue-collar effort," Hurdle said. "I think a runner reached base every inning on in. ... All we did, we battled tonight, we battled off the mound, we battled at the plate."
The 22-year-old Perez is the only Texas rookie to win six consecutive starts, and it was the most for any Rangers pitcher since Kenny Rogers won eight in a row in 2005.
Texas got a run off Jason Grilli in the eighth, when Rios doubled with two outs and scored on a single by Beltre. Tony Watson took over and allowed a double to A.J. Pierzynski before striking out Jeff Baker to end the inning.
Pittsburgh went up 1-0 in the third when it appeared that Tony Sanchez stepped on the foot of catcher A.J. Pierzynski and never actually touched the plate. He came home on McCutchen's infield single.
Texas rookie Joey Butler drew a leadoff walk in the fifth and scored on Kinsler's double to center, a ball that went off the glove of McCutchen as he tried to make a sliding backhanded catch.
The Pirates have 38 road wins, their most since that same amount in 1992. ... Texas also lost four consecutive series in June. ... The Rangers had been safe on 19 consecutive stolen base tries until Elvis Andrus was caught in the third inning. ... Kinsler's double snapped a 15-inning drought for the Rangers without a run or an extra-base hit. ... There was a disputed double play by Pittsburgh in the fourth. Pierzynski hit a grounder that 1B Gaby Sanchez backhanded while apparently sliding his foot across the base before throwing to second to get Beltre. Pierzynski argued with first base umpire Chad Fairchild before Washington and Beltre joined the discussion.
Tatis smiles upon hearing his name attached to LeBron and Mahomes
Fernando Tatis Jr. smiles when he is compared to LeBron James and Patrick Mahomes.
Trout talks with MLBPA chief Clark daily with current CBA expiring soon
Mike Trout says he chats with MLBPA executive director Tony Clark often as the union seeks out advice about CBA negotiations.
Shin-Soo Choo to play for South Korean club on 1-year, $2.4M contract
Shin-Soo Choo will play for a basebal club in his native South Korea after agreeing to a one-year contract worth 2.4 million, the biggest of its kind in the KBO league.
Ohtani: Velocity topped out at 97mph
Shohei Ohtani reacts to throwing live batting practice for the Angels and says his velocity topped out at 97mph.
Fresh off Cy Young season, Shane Bieber would 'love to dive into' contract talks with Cleveland Indians
As the optimistic Indians ponder contract talks with ace and Cy Young Award winner Shane Bieber, team president Chris Antonetti said Cleveland is "hopeful that Shane will be here for a really long time to come."
Throwing live batting practice, an optimistic Shohei Ohtani tops out at 97 mph for Los Angeles Angels
Saying that the "rules are -- there aren't going to be any rules" with Shohei Ohtani's usage this season, Angels manager Joe Maddon is optimistic about the veteran's prospects on the mound.