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);
|
long long numkeys = RedisModule_CallReplyInteger(reply);
|
||||||
printf("FLUSHDB event of database %d started (%lld keys in DB)\n",
|
printf("FLUSHDB event of database %d started (%lld keys in DB)\n",
|
||||||
fi->dbnum, numkeys);
|
fi->dbnum, numkeys);
|
||||||
|
RedisModule_FreeCallReply(reply);
|
||||||
} else {
|
} else {
|
||||||
printf("FLUSHALL event started\n");
|
printf("FLUSHALL event started\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user