Commit 515228e5 authored by zfz's avatar zfz Committed by GitHub
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
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment