fix sentinel memory leak

This commit is contained in:
clark.kang
2015-04-29 00:05:26 +09:00
committed by antirez
parent 081a0c943f
commit c4d4c1ed12

View File

@ -922,6 +922,7 @@ sentinelRedisInstance *createSentinelRedisInstance(char *name, int flags, char *
else if (flags & SRI_SENTINEL) table = master->sentinels;
sdsname = sdsnew(name);
if (dictFind(table,sdsname)) {
releaseSentinelAddr(addr);
sdsfree(sdsname);
errno = EBUSY;
return NULL;