Update libevent.h
event_del can not free the "e->rev" and "e->wev",that will leak when reconnect the redis
This commit is contained in:
parent
29cb95f4f6
commit
515228e5a1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user