From 515228e5a14bf0901cf1be57495da705f9faa41e Mon Sep 17 00:00:00 2001 From: zfz Date: Tue, 28 Mar 2017 16:46:55 +0800 Subject: [PATCH] Update libevent.h event_del can not free the "e->rev" and "e->wev",that will leak when reconnect the redis --- adapters/libevent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapters/libevent.h b/adapters/libevent.h index 273d8b2..7d2bef1 100644 --- a/adapters/libevent.h +++ b/adapters/libevent.h @@ -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); }