We need to set the redis context to NULL after freeing it, otherwise other code will try to free it again, which will make the program abort when exiting. Change-Id: Id634075344351eb1c924c59739b72bbf57de3c89 (cherry picked from commitchanges/51/32651/1781b275295) (cherry picked from commitf4297824f6)