diff options
author | Jan-Erik Rediger <badboy@archlinux.us> | 2017-04-07 21:12:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 21:12:58 +0200 |
commit | 97cd8157f74674c722dd30360caac1f498fa72ef (patch) | |
tree | 72fc3e6b3734301e8b01f8abe70ab28863bd4cf8 /adapters | |
parent | 2d37f608600b4d0633c864f47e93612d3f8b4959 (diff) | |
parent | 515228e5a14bf0901cf1be57495da705f9faa41e (diff) |
Merge pull request #514 from zfzsoft/patch-1
redisLibeventCleanup will be leak
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); } |