Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
dddfde85
Commit
dddfde85
authored
Oct 23, 2019
by
antirez
Browse files
Modules hooks: fix memory leak in example module.
parent
61ac2aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/hellohook.c
View file @
dddfde85
...
...
@@ -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
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment