SANTA CLARA — Whatever Jim Tomsula’s future holds as 49ers coach, San Francisco produced a memorable finish to his first season.
Perhaps his only season.
Phil Dawson kicked a 23-yard field goal 11:33 into overtime for his fourth of the game, and the 49ers held off the St. Louis Rams 19-16 on Sunday in what might have been Tomsula’s finale.
“I have not talked to ownership,” Tomsula said immediately afterward, while noting after a long season, “Today is all about those players.”
Dawson came through after Greg Zuerlein’s 48-yard field goal attempt was blocked by Dontae Johnson, giving San Francisco the ball back with 4:49 to play.
Blaine Gabbert passed for 354 yards and a 33-yard touchdown to Anquan Boldin for the 49ers (5-11), who avoided their worst finish since going 4-12 in 2005.
Rams coach Jeff Fisher finished 7-9 for his fourth straight losing season running the team.
The 49ers ran out and swarmed Dawson after the winning kick.
For the Rams, this loss came after a week in the Northern California wine country between West Coast games — and now the biggest question facing the franchise: Will the Rams relocate to Los Angeles for next season?
Dawson — who turns 41 later this month and wants to return for an 18th season — also kicked a tying 38-yard field goal with 4:33 remaining.
St. Louis punted on its next possession. Then, after left guard Andrew Tiller’s false start, Boldin caught a 27-yard pass with Gabbert under pressure late but San Francisco ended up punting from the 37 with 1:39 left.
Boldin knocked down cornerback Janoris Jenkins on his TD catch 8 seconds into the second quarter. Dawson kicked a 26-yard field goal in the second quarter and a 28-yarder in the third.
Before Dawson came through with his foot, reigning NBA MVP Stephen Curry of the champion Golden State Warriors drew the biggest cheers of the day when shown on the big screen in the third quarter. He obliged with a wave and a smile.
Some of the same problems that plagued the 49ers all season showed up in the finale: penalties, mistakes and ineffective play on both sides of the ball, but St. Louis struggled, too — with Zuerlein also missing an earlier field goal. San Francisco got booed at home in Levi’s Stadium yet again.
Late in the second quarter, Gabbert had a pass tipped by Aaron Donald and Eugene Sims made the interception and returned it 42 yards. Tre Mason ran for a 4-yard score two plays later.
Then in the waning minutes with a chance for a go-ahead touchdown on third-and-goal, Gabbert made an errant pitch backward to DuJuan Harris for a 12-yard loss before Harris pounced on the ball.
Harris had eight catches for 86 yards and Boldin five for 71.
Case Keenum went 22 of 37 for 231 yards as St. Louis had its three-game winning streak snapped as the Rams tried for four consecutive victories for the first time since seven straight in 2003.