DENVER -- Brandon Barnes entered the game late as a defensive replacement. He had plenty of time, as it turned out, to make the difference.
"I didn't think I got it as good as I did, but I stayed through it enough to get it out there," said Barnes, who entered in the eighth inning. "I was ecstatic and I was happy for the team. We broke through that little rut we were in, and hopefully this picks us up and gets us going."
Dodgers manager Don Mattingly said he's hopeful neither Gordon nor Puig will miss much time.
"I couldn't answer that right now," Mattingly said. "The fact that there's no further tests scheduled at this point leads me to believe, at least hopefully, that these are day-to-day issues and not long-term issues."
Gordon left in the fourth inning because of discomfort in his right hip. He was optimistic he wouldn't be out long after receiving treatment.
"It feels way better now after doing some stuff for it," Gordon said.
Puig left with a strained right hip flexor. He walked in the fifth, slid hard into second on a double-play grounder and didn't take the field in the bottom half.
"I was trying to break up the double play and I felt a little something that was stretching my leg," Puig said through a translator. "The medical staff wanted me to come out to get some treatment, and hopefully it's not that big of an issue."
Franklin Morales (4-4) pitched 1 1/3 scoreless innings.
"I made my pitches, got the ball where it was supposed to go and got the hitters out," Morales said. "We'll take this. We had a bad stretch, lost eight in a row, and however it happened, we'll take this."
The Dodgers fell to 3-8 in extra innings this season while the Rockies improved to 3-3.
Trailing 3-0, the Dodgers scored four times in the seventh and chased Jhoulys Chacin.
Matt Kemp drew a leadoff walk, Andre Ethier singled and Justin Turner hit an RBI single. Nick Masset relieved, and Tim Federowicz drove his first offering over the left-field wall for his first homer since Sept. 18 at Arizona.
Wheeler was tagged out in a rundown between third and home on Chacin's grounder, but Rutledge reached third on the play and scored on Charlie Blackmon's two-out single to right.
With the score tied, Kemp hit a leadoff triple in the eighth but was left stranded when the Dodgers followed with three straight groundouts. ... The Rockies' Michael Cuddyer missed a second game and remains day to day because of a sore left shoulder. ... Rockies RHP Christian Bergman is set to make his major league debut Monday. He'll be called up from Triple-A Colorado Springs to start against Atlanta in place of injured Jordan Lyles (broken left hand). ... Barnes also had a walk-off hit while with Houston against Colorado on May 27, 2013, a ground-rule double off Wilton Lopez. ... Dodgers pitcher Chad Billingsley, coming back from Tommy John surgery in April 2013, is slated to resume a rehab assignment at Rancho Cucamonga this weekend. ... Dodgers LHP Clayton Kershaw (4-2) will face LHP Jorge De La Rosa (6-4) in the series finale Sunday.