Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
515228e5
Commit
515228e5
authored
Mar 28, 2017
by
zfz
Committed by
GitHub
Mar 28, 2017
Browse files
Update libevent.h
event_del can not free the "e->rev" and "e->wev",that will leak when reconnect the redis
parent
29cb95f4
Changes
1
Show whitespace changes
Inline
Side-by-side
adapters/libevent.h
View file @
515228e5
...
...
@@ -73,8 +73,8 @@ static void redisLibeventDelWrite(void *privdata) {
static
void
redisLibeventCleanup
(
void
*
privdata
)
{
redisLibeventEvents
*
e
=
(
redisLibeventEvents
*
)
privdata
;
event_
del
(
e
->
rev
);
event_
del
(
e
->
wev
);
event_
free
(
e
->
rev
);
event_
free
(
e
->
wev
);
free
(
e
);
}
...
...
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