Fix Sentinel memory leak (hiredis bug)
Fix Sentinel memory leak (hiredis bug)

This fixes issue #2535, that was actually an hiredis library bug (I
submitted an issue and fix to the redis/hiredis repo as well).

When an asynchronous hiredis connection subscribes to a Pub/Sub channel
and gets an error, and in other related conditions, the function
redisProcessCallbacks() enters a code path where the link is
disconnected, however the function returns before freeing the allocated
reply object. This causes a memory leak. The memory leak was trivial to
trigger in Redis Sentinel, which uses hiredis, every time we tried to
subscribe to an instance that required a password, in case the Sentinel
was configured either with the wrong password or without password at
all. In this case, the -AUTH error caused the leaking code path to be
executed.

It was verified with Valgrind that after this change the leak no longer
happens in Sentinel with a misconfigured authentication password.

itugs/redis,Sciumo/redis,OmarQunsul/graph-redis,zguangyu/redis,izhoujie/redis,blackmady/redis,charsyam/redis,190235047/redis,valdsJohn/redis,badboy/redis,vincent-vivian-liu/redis,twskipper/redis,atreeyang/redis,PradheepShrinivasan/redis,Soledad89/redis,xujunhai1991/redis,LongXQ/redis,Wangyao14cyy/redis,francischan714/redis,zhiliaoniu/redis,atreeyang/redis,soloestoy/redis,Sciumo/redis,soloestoy/redis,atreeyang/redis,weizijun/redis,itamarhaber/redis,yossigo/redis,charsyam/redis,JoeWoo/redis,aim-for-better/redis,ipmobiletech/redis,qiyang0221/redis,supasate/redis,ouyangkongtong/redis,roth1002/redis,soloestoy/redis,pedigree/redis,wbailey5/redis,nnog/redis,kmiku7/redis,ofirluzon/redis,Markgorden/redis,tellapart/redis,jingjidejuren/redis,zhiliaoniu/redis,pcarrier/redis,simplestbest/redis,rogerchina/redis,AALEKH/redis,mgk/redis,riyan8250/redis,kmiku7/redis,brg-liuwei/redis,PradheepShrinivasan/redis,huyuezheng/redis,yossigo/redis,modulexcite/redis,csuhawk/redis,neomantra/redis,gaoxianglong/redis,xlzhan/redis,mverrilli/redis,ouyangkongtong/redis,cusspvz/redis,honestme/redis,linfangrong/redis,cnbin/redis,tjschuck/redis,linfangrong/redis,elkingtonmcb/redis,seandsky/redis,oranagra/redis,dreamquster/redis,LongXQ/redis,wenxueliu/redis_comment,PKRoma/redis,jingjidejuren/redis,YongMan/redis,modulexcite/redis,weizijun/redis,pcarrier/redis,davidradunz/redis,saisai/redis,mverrilli/redis,kaushik94/redis,simplestbest/redis,SyntaxStacks/redis,JoeWoo/redis,rogerchina/redis,yuhc/redis-benchmark-enhanced,jingjidejuren/redis,NBSW/redis,aim-for-better/redis,csuhawk/redis,roth1002/redis,SummonY/redis,mgk/redis,StevenTsai/redis,YongMan/redis,francischan714/redis,nnog/redis,ipmobiletech/redis,roth1002/redis,dayuoba/redis,brg-liuwei/redis,guker/redis,ton31337/redis,rouzier/redis,zhcy/redis,z-fork/redis,yossigo/redis,mgk/redis,cloudrain21/redis,mcanthony/redis,seandsky/redis,janekmi/redis,pmem/redis,neomantra/redis,ipmobiletech/redis,ytjiang/redis,MasahikoSawada/redis,4396/redis,ouyangkongtong/redis,mcanthony/redis,riyan8250/redis,mingyaaaa/redis,shining-yang/redis,ErikDubbelboer/redis,blackmady/redis,dayuoba/redis,jackyan/redis,shreesundara/redis,YongMan/redis,z-fork/redis,wprice/redis,twskipper/redis,flashbuckets/redis,netroby/redis,duanx/redis,tanghaodong25/redis,programmecat/redis,shining-yang/redis,modulexcite/redis,clamoriniere1A/redis,hawkchch/redis,wangyikai/redis,fengshao0907/redis,seppo0010/redis,MasahikoSawada/redis,devaos/redis,qiyang0221/redis,YuanZhewei/redis,MasahikoSawada/redis,GitHubMota/redis,nnog/redis,thomasdarimont/redis,pkdevbox/redis,yuhc/redis-benchmark-enhanced,antirez/redis,zhiliaoniu/redis,oranagra/redis,PradheepShrinivasan/redis,allengaller/redis,mumingv/redis,xujunhai1991/redis,saisai/redis,xuguruogu/redis,itugs/redis,ituncle/redis,tjschuck/redis,ofirluzon/redis,spinlock/redis,taoguan/redis,duanx/redis,guker/redis,xuguruogu/redis,SummonY/redis,z-fork/redis,mingyaaaa/redis,july2993/redis,a-pavlov/redis,wenxueliu/redis_comment,rogerlz/redis,StevenTsai/redis,zczhuohuo/redis,blackmady/redis,jackyan/redis,shreesundara/redis,universsky/redis,YuanZhewei/redis,YuraLukashik/redis,Sciumo/redis,netroby/redis,cusspvz/redis,mcanthony/redis,ctripcorp/redis,xujunhai1991/redis,shreesundara/redis,Markgorden/redis,allengaller/redis,tellapart/redis,xlzhan/redis,qiyang0221/redis,kensou97/redis,vincent-vivian-liu/redis,zhcy/redis,csuhawk/redis,programmecat/redis,fengshao0907/redis,weizijun/redis,Soledad89/redis,clamoriniere1A/redis,colstrom/redis,seppo0010/redis,badboy/redis,tanghaodong25/redis,zguangyu/redis,mumingv/redis,wangyikai/redis,cusspvz/redis,healerkx/redis,soloestoy/redis,rouzier/redis,mumingv/redis,modulexcite/redis,programmecat/redis,holstvoogd/redis,huyuezheng/redis,ton31337/redis,programmecat/redis,sunheehnus/redis,hornen/redis,mengyou0304/redis,jackyan/redis,hornen/redis,kaushik94/redis,guker/redis,honestme/redis,h0x91b/redis,pmem/redis,a-pavlov/redis,yossigo/redis,190235047/redis,aim-for-better/redis,tellapart/redis,spinlock/redis,OmarQunsul/graph-redis,pkdevbox/redis,neomantra/redis,ofirluzon/redis,thomasdarimont/redis,clamoriniere1A/redis,devaos/redis,kmiku7/redis,arijitvt/redis,taoguan/redis,supasate/redis,PKRoma/redis,weizijun/redis,zhiliaoniu/redis,gaoxianglong/redis,qiyang0221/redis,mengyou0304/redis,SummonY/redis,rogerlz/redis,healerkx/redis,aim-for-better/redis,harrisonfeng/redis,netroby/redis,xuguruogu/redis,GrimDerp/redis,takeshineshiro/redis,OmarQunsul/graph-redis,Markgorden/redis,xlzhan/redis,shining-yang/redis,valdsJohn/redis,CodeJuan/redis,universsky/redis,NBSW/redis,mverrilli/redis,gaoxianglong/redis,mcanthony/redis,arijitvt/redis,GrimDerp/redis,mgk/redis,LongXQ/redis,YongMan/redis,valdsJohn/redis,charsyam/redis,francischan714/redis,supasate/redis,ctripcorp/redis,wprice/redis,OmarQunsul/graph-redis,fengshao0907/redis,zguangyu/redis,honestme/redis,soveran/redis,vincent-vivian-liu/redis,SyntaxStacks/redis,sunheehnus/redis,flashbuckets/redis,twskipper/redis,h0x91b/redis,rogerchina/redis,charsyam/redis,hedisdb/hedis,simplestbest/redis,atreeyang/redis,cnbin/redis,devaos/redis,wprice/redis,saisai/redis,fengshao0907/redis,NBSW/redis,CodeJuan/redis,AALEKH/redis,rogerlz/redis,devaos/redis,mverrilli/redis,kaushik94/redis,CodeJuan/redis,wenxueliu/redis_comment,zczhuohuo/redis,SyntaxStacks/redis,yuhc/redis-benchmark-enhanced,sunheehnus/redis,neomantra/redis,ouyangkongtong/redis,takeshineshiro/redis,ctripcorp/redis,xlzhan/redis,MasahikoSawada/redis,pcarrier/redis,Soledad89/redis,h0x91b/redis,antirez/redis,seandsky/redis,cusspvz/redis,Markgorden/redis,wbailey5/redis,Aliceljm1/redis,190235047/redis,xujunhai1991/redis,clamoriniere1A/redis,vincent-vivian-liu/redis,hgl888/redis,Soledad89/redis,spinlock/redis,yuhc/redis-benchmark-enhanced,PKRoma/redis,Aliceljm1/redis,allengaller/redis,flashbuckets/redis,ipmobiletech/redis,oranagra/redis,sunheehnus/redis,colstrom/redis,cnbin/redis,PKRoma/redis,itugs/redis,ituncle/redis,ituncle/redis,supasate/redis,neomantra/redis,zguangyu/redis,valdsJohn/redis,arijitvt/redis,tellapart/redis,hedisdb/hedis,taoguan/redis,wprice/redis,Wangyao14cyy/redis,tanghaodong25/redis,kensou97/redis,hawkchch/redis,hgl888/redis,wenxueliu/redis_comment,ofirluzon/redis,4396/redis,brg-liuwei/redis,huyuezheng/redis,wangyikai/redis,holstvoogd/redis,LongXQ/redis,huyuezheng/redis,oranagra/redis,itamarhaber/redis,xuguruogu/redis,holstvoogd/redis,zczhuohuo/redis,janekmi/redis,JoeWoo/redis,itamarhaber/redis,cloudrain21/redis,soveran/redis,riyan8250/redis,YuraLukashik/redis,Sciumo/redis,izhoujie/redis,davidradunz/redis,allengaller/redis,rouzier/redis,arijitvt/redis,pkdevbox/redis,ErikDubbelboer/redis,4396/redis,AplayER/redis,elkingtonmcb/redis,NBSW/redis,universsky/redis,harrisonfeng/redis,healerkx/redis,dayuoba/redis,pedigree/redis,rogerchina/redis,badboy/redis,charsyam/redis,saisai/redis,Aliceljm1/redis,rouzier/redis,soveran/redis,YuraLukashik/redis,janekmi/redis,healerkx/redis,tjschuck/redis,brg-liuwei/redis,roth1002/redis,hgl888/redis,ituncle/redis,hgl888/redis,mumingv/redis,july2993/redis,YuraLukashik/redis,a-pavlov/redis,tjschuck/redis,itamarhaber/redis,SummonY/redis,Wangyao14cyy/redis,PKRoma/redis,kensou97/redis,jingjidejuren/redis,janekmi/redis,JoeWoo/redis,simplestbest/redis,mingyaaaa/redis,ytjiang/redis,twskipper/redis,cloudrain21/redis,a-pavlov/redis,davidradunz/redis,ytjiang/redis,rogerlz/redis,ErikDubbelboer/redis,jackyan/redis,francischan714/redis,ton31337/redis,zhcy/redis,YuanZhewei/redis,badboy/redis,zczhuohuo/redis,ofirluzon/redis,dayuoba/redis,seppo0010/redis,elkingtonmcb/redis,SyntaxStacks/redis,ytjiang/redis,spinlock/redis,GitHubMota/redis,elkingtonmcb/redis,blackmady/redis,AALEKH/redis,StevenTsai/redis,CodeJuan/redis,harrisonfeng/redis,duanx/redis,oranagra/redis,wbailey5/redis,july2993/redis,h0x91b/redis,pcarrier/redis,ctripcorp/redis,shreesundara/redis,wbailey5/redis,izhoujie/redis,colstrom/redis,july2993/redis,taoguan/redis,linfangrong/redis,seppo0010/redis,hornen/redis,colstrom/redis,GitHubMota/redis,yossigo/redis,antirez/redis,kaushik94/redis,kmiku7/redis,flashbuckets/redis,soloestoy/redis,wangyikai/redis,tanghaodong25/redis,csuhawk/redis,seandsky/redis,mengyou0304/redis,YuanZhewei/redis,StevenTsai/redis,cnbin/redis,ErikDubbelboer/redis,dreamquster/redis,izhoujie/redis,GitHubMota/redis,duanx/redis,hawkchch/redis,pedigree/redis,pmem/redis,harrisonfeng/redis,AplayER/redis,hedisdb/hedis,dreamquster/redis,hawkchch/redis,honestme/redis,universsky/redis,riyan8250/redis,4396/redis,guker/redis,netroby/redis,pmem/redis,pedigree/redis,Aliceljm1/redis,dreamquster/redis,cloudrain21/redis,kensou97/redis,zhcy/redis,mengyou0304/redis,hedisdb/hedis,itugs/redis,AplayER/redis,z-fork/redis,holstvoogd/redis,GrimDerp/redis,pkdevbox/redis,190235047/redis,AALEKH/redis,Wangyao14cyy/redis,soveran/redis,takeshineshiro/redis,mingyaaaa/redis,linfangrong/redis,nnog/redis,antirez/redis,thomasdarimont/redis,GrimDerp/redis,PradheepShrinivasan/redis,AplayER/redis,shining-yang/redis,hornen/redis,thomasdarimont/redis,ton31337/redis,davidradunz/redis,gaoxianglong/redis,takeshineshiro/redis