diff options
author | antirez <antirez@gmail.com> | 2018-03-31 09:58:43 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-03-31 09:58:43 +0200 |
commit | 4c11bc6cf067fb19bd6cb7517068c24543ca09d6 (patch) | |
tree | 5566c31d7300130c33e00ea73d312ba16762b425 /src/module.c | |
parent | 2f7da0fd1a70f8cc0fe2edb2b1d6f37466615457 (diff) | |
download | redis-4c11bc6cf067fb19bd6cb7517068c24543ca09d6.tar.gz |
Modules Timer API: fix wrong raxRemove() key argument.
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 2 |
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; |