SAN FRANCISCO -- Andres Torres lined a game-ending single to right field with two outs in the 10th inning, lifting the San Francisco Giants to a 4-3 victory against the Philadelphia Phillies on Wednesday to avoid a sweep.
Buster Posey hit a pinch-hit single to start the 10th against Antonio Bastardo (1-1) and was sacrificed to second by Joaquin Arias. Posey advanced to third on a wild pitch before Torres came through with his fourth career game-ending hit.
The Giants earned their fifth walkoff victory.
Hunter Pence homered against his former club for the second time during the three-game series, but Romo wasn't his usual spot-on self in the ninth.
Pence sent a 2-2 pitch into the stands in left field leading off the second for his seventh homer. Marco Scutaro hit a go-ahead single in the fifth to score Gregor Blanco after he singled and stole second.
PADRES 1, MARLINS 0
Marquis (4-2) allowed five hits, walked one and struck out three in eight innings, his longest stint since last Aug. 11th when he had a 5-0 shutout at Pittsburgh.
Huston Street pitched the ninth to pick up his eighth save in eight chances.
The Padres have won four straight and 11 of their last 14.
Nolasco (2-4) gave up one run and four hits, with one walk and a season-high nine strikeouts in seven innings. He had won his four previous decisions at San Diego, where he dropped to 4-2 with a 2.11 ERA in his career.
CARDINALS 5, CUBS 4
Beltran also had three hits as St. Louis went 5-1 on a six-game swing to Milwaukee and Chicago, with the lone loss coming Tuesday in their first game of the season against the last-place Cubs.
Four St. Louis relievers combined for 3 2-3 innings of two-hit ball after Jake Westbrook had his worst start this season. Seth Maness (2-0) got five outs to get the win and Edward Mujica worked the ninth for his ninth save in nine opportunities.
BRAVES 7, REDS 2
Atlanta took two of three, the first series the Reds lost at home this season.
RANGERS 4, BREWERS 1
Holland (3-2), who struck out six and walked none, yielded 10 hits -- including two in the second, three in the third and three in the sixth. He escaped with the help of some sloppy baserunning by the Brewers, who had a runner thrown out at the plate to end the third and another thrown out at third base in the sixth.
Ian Kinsler hit a two-run shot for Texas.
NATIONALS 3 TIGERS 1
Denard Span added a triple and a single for Washington, which has won five of six.
Zimmermann (6-1), whose scoreless streak was snapped at 20 innings in the third, allowing a run on seven hits over seven innings. He fanned seven and lowered his ERA to 1.59 in winning his third straight start.
Rafael Soriano pitched a scoreless ninth for his 11th save.
Jhonny Peralta had two hits for the Tigers, who had won four straight and nine of 10.
Detroit's Anibal Sanchez (3-3) allowed three runs, two earned, on eight hits and struck out eight.
WHITE SOX 6, METS 3
Alex Rios homered among his three hits and knocked in two runs for the White Sox. Conor Gillaspie blooped a two-run double off Jeremy Hefner (0-4) as Chicago's struggling hitters finally found a few holes.
Rios also had an RBI double and Paul Konerko a run-scoring single to help the last-place White Sox take the finale of a 4-4 road trip.
MARINERS 2, PIRATES 1
Hernandez (5-2) struck out five and walked one to improve to 4-0 in his last five starts while shaving his ERA to 1.53. The right-hander shook off a shaky first inning then settled down to allow four base runners in his final seven innings of work. Tom Wilhelmsen worked the ninth for his ninth save.
Burnett (3-3) was almost as sharp, giving up just two hits over seven innings while striking out nine. Yet he also walked four batters and gave up Montero's third homer of the season with one out in the seventh.
Copyright 2013 by The Associated Press
This story is from ESPN.com's automated news wire. Wire index