Update libevent.h
event_del can not free the "e->rev" and "e->wev",that will leak when reconnect the redis
@@ -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);
}
