diff --git a/src/sentinel.c b/src/sentinel.c index a099156e9..ae83996b6 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -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;