PHOENIX (AP) — Clayton Kershaw won his 10th game, Scott Van Slyke hit his first home run of the season and the Los Angeles Dodgers beat the Diamondbacks 3-2 on Wednesday to take two of three in Arizona.

Kershaw (10-1) went 7 1-3 innings, allowing two runs and five hits. He struck out 11 and, for only the seventh time this season, walked a batter. Kenley Jansen tossed a perfect ninth to tie the Dodgers’ franchise record of 161 career saves held by Eric Gagne.

READ MORE: Evening Commute Could Be Difficult With Dodgers, Lakers Playing At Home

Jansen has 19 saves in 22 tries this season.

Rickie Weeks Jr.’s second-inning home run put Arizona up 1-0, a lead erased by Van Slyke’s three-run shot in the sixth.

They were the only runs allowed by Patrick Corbin (3-6), who gave up seven hits, struck out seven and walked two in 6 1-3 innings.

Kershaw won for just the sixth time in 13 decisions at Chase Field.

Paul Goldschmidt came a few inches short of what would have been a game-tying home run in the sixth inning. His line drive bounced off the top of the wall in left for an RBI single that cut the Dodgers’ lead to 3-2.

Adrian Gonzalez and Howie Kendrick singled with two outs ahead of Van Slyke’s home run.

READ MORE: West Valley Animal Shelter Dogs In Quarantine After Outbreak Of Canine Influenza

The homer came on Van Slyke’s 26th at-bat of the season. He spent eight weeks on the disabled list with lower back soreness before being reinstated on June 4.

After his near-homer, Goldschmidt took second when Kershaw threw the ball away on a pickoff attempt, but Weeks lined out to center to end the threat.

Arizona threatened again in the seventh when Van Slyke misplayed Welington Castillo’s fly ball in left for a leadoff double. Yasmany Tomas struck out, Nick Ahmed grounded out and Kershaw got pinch-hitter Phil Gosselin looking on a slow curveball to strand the runner.

MEANWHILE…

Manager Dave Roberts says RHP Kenta Maeda will make his scheduled start Sunday at home against Milwaukee. The 19-year-old had to leave Tuesday night’s game after being hit in the right knee with a line drive. X-rays were negative, indicating it was only a bruise. … OF Yasiel Puig (strained left hamstring) played five innings in a rehab game with Class-A Rancho Cucamonga on Tuesday night. He was 1 for 1 with a walk.

The Dodgers return home to open a four-game series against Milwaukee on Thursday night. LHP Scott Kazmir (5-3, 4.52 ERA) starts for Los Angeles, RHP Junior Garza (3-1, 3.31) goes for the Brewers.

MORE NEWS: LA City Council Votes Unanimously To Crack Down On Street Racing Promotion

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)