summaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-03-31 09:58:43 +0200
committerantirez <antirez@gmail.com>2018-03-31 09:58:43 +0200
commit4c11bc6cf067fb19bd6cb7517068c24543ca09d6 (patch)
tree5566c31d7300130c33e00ea73d312ba16762b425 /src/module.c
parent2f7da0fd1a70f8cc0fe2edb2b1d6f37466615457 (diff)
downloadredis-4c11bc6cf067fb19bd6cb7517068c24543ca09d6.tar.gz
Modules Timer API: fix wrong raxRemove() key argument.
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index 7b7fbb1fe..3022f8bbd 100644
--- a/src/module.c
+++ b/src/module.c
@@ -4073,7 +4073,7 @@ int moduleTimerHandler(struct aeEventLoop *eventLoop, long long id, void *client
ctx.module = timer->module;
timer->callback(&ctx,timer->data);
moduleFreeContext(&ctx);
- raxRemove(Timers,(unsigned char*)&ri.key,ri.key_len,NULL);
+ raxRemove(Timers,(unsigned char*)ri.key,ri.key_len,NULL);
zfree(timer);
} else {
next_period = expiretime-now;