Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
eff212ea
Commit
eff212ea
authored
Apr 29, 2015
by
clark.kang
Browse files
fix sentinel memory leak
parent
1b25757f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
eff212ea
...
@@ -922,6 +922,7 @@ sentinelRedisInstance *createSentinelRedisInstance(char *name, int flags, char *
...
@@ -922,6 +922,7 @@ sentinelRedisInstance *createSentinelRedisInstance(char *name, int flags, char *
else if (flags & SRI_SENTINEL) table = master->sentinels;
else if (flags & SRI_SENTINEL) table = master->sentinels;
sdsname = sdsnew(name);
sdsname = sdsnew(name);
if (dictFind(table,sdsname)) {
if (dictFind(table,sdsname)) {
releaseSentinelAddr(addr);
sdsfree(sdsname);
sdsfree(sdsname);
errno = EBUSY;
errno = EBUSY;
return NULL;
return NULL;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment