But he didn't release it as per the law.
Toby. Release does not just mean let go of the ball. There are a few ways the ball can be released and whichever one he chooses must be done immediately
1. By letting go of it -15.5 (b)
2. By passing it - 15.5(b)
3. By placing it on the ground in any direction - 15.5 (c)
4. By pushing it along the ground in any direction
except forwards - 15.5 (d)
When an opponent legally has his hands on the ball his options 2, 3 and 4 disappear, an he is left onlt with Option 1 - Law 15.5 (e)
[LAWS](e) If opposition players who are on their feet attempt to play the ball, the tackled player must release the ball.
Sanction: Penalty kick[/LAWS]
Law 22.4
specifically says that a player tackled near the goal line can reach out to ground the ball, and in doing so, this Law is making it clear that he is still entitled to exercise his option to place the ball in any direction - Law 15.5 (c) - even if he places it over the goal line.
(c) A tackled player may release the ball by
putting it on the ground in any direction, provided this is done immediately.
Sanction: Penalty kick
However, while he can also push the ball he is prohibited from pushing the ball forward - Law 15.5 (d)