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/50/32650/1781b275295) (cherry picked from commit9d320ab400)