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
827d07f0
Commit
827d07f0
authored
May 04, 2015
by
Salvatore Sanfilippo
Browse files
Merge pull request #2551 from charsyam/feature/sentinel-memory-leak-1
fix sentinel memory leak
parents
7af420e7
eff212ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
827d07f0
...
...
@@ -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
;
...
...
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