mirror of https://mirror.osredm.com/root/redis.git
Modules hooks: fix memory leak in example module.
This commit is contained in:
parent
61ac2aef2b
commit
dddfde85ef
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue