Modules hooks: fix memory leak in example module.

This commit is contained in:
antirez 2019-10-23 18:21:57 +02:00
parent 61ac2aef2b
commit dddfde85ef

View File

@ -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");
}