From dddfde85efb93b6365855c97a9b86e1951672a96 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 23 Oct 2019 18:21:57 +0200 Subject: [PATCH] Modules hooks: fix memory leak in example module. --- src/modules/hellohook.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/hellohook.c b/src/modules/hellohook.c index 2e798f500..7ab78ed07 100644 --- a/src/modules/hellohook.c +++ b/src/modules/hellohook.c @@ -63,6 +63,7 @@ void flushdbCallback(RedisModuleCtx *ctx, RedisModuleEvent e, uint64_t sub, void long long numkeys = RedisModule_CallReplyInteger(reply); printf("FLUSHDB event of database %d started (%lld keys in DB)\n", fi->dbnum, numkeys); + RedisModule_FreeCallReply(reply); } else { printf("FLUSHALL event started\n"); }