Updated

Tony Allen scored on a tip-in with 5.6 seconds left to give the Memphis Grizzlies their fourth straight victory, 104-103 victory over the Golden State Warriors on Saturday night.

Allen scored after Rudy Gay missed a shot to the right of the lane. Memphis also won off a miss from Gay on Friday night, beating Denver 103-102 on Dante Cunningham's tip.

The Warriors had one last shot after Allen's tip-in, but David Lee was called for an offensive foul with less than a second left, sending the Warriors their third straight loss.

Gay led Memphis with 19 points, and O.J. Mayo had 18. Marc Gasol added 17 points and 13 rebounds, Marreese Speights had 16 points, Mike Conley finished with 15 points and six assists, and Allen had 11 points.

Stephen Curry led the Warriors with 36 points, matching his season high. Monta Ellis finished with 33 points, and Lee had 14 points and nine rebounds. Curry and Ellis each had six assists.

The game was close throughout the fourth quarter. Memphis had a five-point lead, but that was the biggest advantage either team had in the final period.

Part of that came from Memphis missing four straight free throws while trailing or tied.

There were eight ties and nine lead changes in the fourth quarter.

The Warriors took a 103-102 lead on Epke Udoh's two free throws with 28.1 seconds left, setting the stage for Allen's winner.

Memphis connected on its first six shots, building an 18-point lead, en route to hitting 14 of its 20 shots in the first quarter.

Curry kept the Warriors close. He connected on five of his first six shots in the second quarter, including four from long range, and, with the help of Ellis, put pressure on Memphis by opening the period with a 24-8 run to erase the Grizzlies' advantage.

Golden State eventually would outscore Memphis 37-20 in the second period, helping the Warriors carry a 56-54 advantage into the halftime break.

The Warriors starting backcourt was a combined 15 of 26 in the half. Curry had 23 points at intermission, and Ellis added 17.

Memphis shot well at 59 percent, but the Grizzlies were hampered by 10 turnovers. Gasol and Speights had 11 points each for Memphis, and Gay scored 10 before the break.

The Grizzlies missed 10 of their first 13 shots in the third.

Memphis was able to whittle the advantage in the latter stages of the quarter, leaving the Warriors up 78-76 entering the fourth.

NOTES: Memphis wore its throwback Memphis Tams uniforms from the ABA days. ... The game was the nightcap of a college-NBA doubleheader at the FedExForum. Earlier, UTEP beat Memphis 60-58. ... Curry had been held under 15 points in each of the previous four games. ... Memphis has won four straight in the series.