It won't have forgotten what to do, so don't let this affect your decision to keep it or release it. As long as there's no chance it came into contact with any foreign froggy diseases, there's no problems setting it free.
I have 2 that turned up indoors this past January. They're getting the boot outside as soon as I start seeing the 'wild' ones outdoors.
On the other hand, a few winters ago I took in 6 that turned up indoors after the ground was covered in snow. Come spring, I released all but 2 (I had become attached to all of them). The ones I released kept turning up around the house that summer (this is normal and not any sign of domestication, and I've often wondered where they sat before door frames moved into their neighborhood). A few were spotted the following summer (their markings are distinct). They had no apparent issues readjusting to their old homes after their winter vacations indoors.
So I won't tell you what to do, just that releasing it will be no problem and it's chances for survival will be the same as any other frog. Also, no matter what you decide, thanks for taking care of it when it got 'lost' from it's natural habitat!