CHICAGO -- This time, the Colorado Rockies were more than happy to put in a little overtime.

A day after losing a 16-inning marathon, the Rockies pushed across two runs in the 10th inning for a 6-4 victory over the Chicago Cubs on Wednesday.

"As long as it wasn't 16 again," Rockies manager Walt Weiss said. "We would have been in trouble if that were the case. I would have preferred playing nine, but we got through it."

The win snaps a three-game losing streak and an eight-game road losing streak for Colorado. The Cubs saw their two-game winning streak end.

Right-hander Rob Scahill (1-0), called up from the minors on Wednesday to help a tired bullpen, pitched the ninth inning for the win. Adam Ottavino worked the 10th for his first save.

Left fielder Brandon Barnes broke the tie in the 10th when he singled to drive in third baseman Nolan Arenado, who drew a leadoff walk. The insurance run was scored by center fielder Drew Stubbs, who raced home from third on a wild pitch by Wesley Wright (0-2).

"We got some timely hits tonight," Weiss said. "We had some early, and, of course, (Barnes) had the big one late. It's been tough to do that lately. We've had a hard time putting together big hits and big innings, and we did some of that tonight."

The Rockies were four outs away from a 4-2 win and appeared to be out of the eighth inning when Cubs shortstop Starlin Castro lifted a long fly ball toward the center field wall with two outs. Stubbs ran back and was under the ball just in front of the ivy, but the ball glanced off his glove for an error as Castro cruised into second.

The next batter, third baseman Luis Valbuena (3-for-5, three RBIs), drilled a 3-2 pitch from right-hander Tommy Kahnle into the right field bleachers to tie the score at 4.

"We battled back," Cubs manager Rick Renteria said. "The two-run home run was big."

Neither starter figured in the decision, but Rockies left-hander Brett Anderson played a key role. He scattered 11 hits and allowed just two runs in seven innings. The Cubs had baserunners in every inning, but Anderson was able to limit the damage thanks in part to three double plays. He struck out nine without issuing a walk and, most important, pitched deep into the game.

"It seemed like there was first and second or a runner on first to start every inning," Anderson said. "But the double plays helped out early, and then the last couple of innings I just tried to battle and keep the lead."

The Rockies went the final 15 innings Tuesday without scoring, but they got on the board in the first inning Wednesday. Arenado doubled with two outs, and first baseman Justin Morneau (2-for-5) followed with an RBI single to center for a 1-0 lead.

Colorado added two runs in the second. Catcher Michael McKenry (3-for-5) led off with a single, and shortstop Charlie Culberson stroked an RBI double one out later. Culberson took third on the throw and then scored on right fielder Charlie Blackmon's double to make it 3-0.

The Cubs finally got on the board in the fifth. With two outs, catcher John Baker, the winning pitcher and hero of Tuesday's marathon, stroked a double into the left field corner on a 3-2 pitch to score right fielder Ryan Sweeney and make it 3-1.

McKenry stretched the lead to 4-1 with an RBI double in the sixth. The Cubs answered with a run in the bottom of the inning on an RBI single by Valbuena.

The Rockies, who blew a 3-0 lead, then had to shake off feelings of "here we go again" after Chicago tied it.

"It's easy to think that way when things aren't going well," Weiss said. "The way we've lost some games, it seems like it's been Murphy's Law around here, so it was nice to see us fight for that win because they haven't been coming easy."

NOTES: The Cubs acquired LHP Felix Doubront from the Boston Red Sox for a player to be named. Doubront, 26, was 2-4 with a 6.07 ERA in 17 appearances (10 starts) with Boston this season. ... The Cubs also completed Monday's deal that sent 2B Darwin Barney to the Los Angeles Dodgers. Chicago received minor league RHP Jonathan Martinez. ... Because of Tuesday's 16-inning marathon, neither team took batting practice before Wednesday night's game. ... Cubs C John Baker, who pitched a scoreless 16th inning and was credited with the win, said he received countless texts from players, coaches and managers around the league. The texts ranged from serious to funny. One coach told Baker he was tipping his slider. ... The Rockies added RHP Rob Scahill before the game to help shore up their depleted bullpen. They optioned INF Cristhian Adames to the minors. ... The Cubs made a similar move, calling up LHP Chris Rusin from Triple-A Iowa and sending RHP Blake Parker to Iowa. ... INF/OF Emilio Bonifacio did not play as the Cubs entertained trade offers for the versatile speedster.