summaryrefslogtreecommitdiff
path: root/adapters
diff options
context:
space:
mode:
authorJan-Erik Rediger <badboy@archlinux.us>2017-04-07 21:12:58 +0200
committerGitHub <noreply@github.com>2017-04-07 21:12:58 +0200
commit97cd8157f74674c722dd30360caac1f498fa72ef (patch)
tree72fc3e6b3734301e8b01f8abe70ab28863bd4cf8 /adapters
parent2d37f608600b4d0633c864f47e93612d3f8b4959 (diff)
parent515228e5a14bf0901cf1be57495da705f9faa41e (diff)
Merge pull request #514 from zfzsoft/patch-1
redisLibeventCleanup will be leak
Diffstat (limited to 'adapters')
-rw-r--r--adapters/libevent.h4
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);
}