diff options
author | zfz <zfzsoft@163.com> | 2017-03-28 16:46:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 16:46:55 +0800 |
commit | 515228e5a14bf0901cf1be57495da705f9faa41e (patch) | |
tree | 726caed2e515ade096ecd21217ae981eca80cd6e /adapters | |
parent | 29cb95f4f67879a20ee784bdd4f6bd5b2105eb4d (diff) |
Update libevent.h
event_del can not free the "e->rev" and "e->wev",that will leak when reconnect the redis
Diffstat (limited to 'adapters')
-rw-r--r-- | adapters/libevent.h | 4 |
1 files 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); } |