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
0fb9f341
Commit
0fb9f341
authored
Nov 30, 2016
by
Dvir Volk
Committed by
antirez
Dec 05, 2016
Browse files
fix memory corruption on RM_FreeCallReply
parent
41994f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
0fb9f341
...
...
@@ -2286,8 +2286,10 @@ void RM_FreeCallReply_Rec(RedisModuleCallReply *reply, int freenested){
* to have the first level function to return on nested replies, but only
* if called by the module API. */
void
RM_FreeCallReply
(
RedisModuleCallReply
*
reply
)
{
RedisModuleCtx
*
ctx
=
reply
->
ctx
;
RM_FreeCallReply_Rec
(
reply
,
0
);
autoMemoryFreed
(
reply
->
ctx
,
REDISMODULE_AM_REPLY
,
reply
);
autoMemoryFreed
(
ctx
,
REDISMODULE_AM_REPLY
,
reply
);
}
/* Return the reply type. */
...
...
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