What is being called a 'memory' is actually the calibration of the battery meter on your device, be it an Android, iPhone, tablet, netbook or laptop. If you keep it charged all the time the battery meter becomes less and less accurate and a full discharge and recharge cycle recalibrates it. The battery is ok but the battery meter is reporting incorrect stats. Like when it dies even if it appears you have 45% remaining, this is a sign of that.
Awhile back I had an iPhone 3GS that did this automatic battery discharge that was meant to 'reset' the battery meter, and I think this was iPhone OS 3 or 4. Either way it happened each month the day that coincided with activation, say if it was activated June 3, it would do this on July 3, Aug 3, and so on. Problem was I never knew it was going on as I'd pull it off charge first thing in the morning, then one hour later attempt to make a call then see the red battery and the plug symbol, and it was red hot. Every other day it was fine. Asked about it in an Apple forum and got the reason, auto calibrate or something.