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
88d58661
Commit
88d58661
authored
Apr 29, 2015
by
clark.kang
Committed by
antirez
May 04, 2015
Browse files
fix sentinel memory leak
parent
315e3b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
88d58661
...
@@ -923,6 +923,7 @@ sentinelRedisInstance *createSentinelRedisInstance(char *name, int flags, char *
...
@@ -923,6 +923,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