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:
zfz 2017-03-28 16:46:55 +08:00 committed by GitHub
parent 29cb95f4f6
commit 515228e5a1
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}