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
a4f03bd7
Unverified
Commit
a4f03bd7
authored
Mar 11, 2021
by
guybe7
Committed by
GitHub
Mar 11, 2021
Browse files
Fix some memory leaks in propagagte.c (#8636)
Introduced by
3d0b427c
parent
4ae1bea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/modules/propagate.c
View file @
a4f03bd7
...
...
@@ -77,7 +77,8 @@ void timerNestedHandler(RedisModuleCtx *ctx, void *data) {
/* The goal is the trigger a module command that calls RM_Replicate
* in order to test MULTI/EXEC structre */
RedisModule_Replicate
(
ctx
,
"INCRBY"
,
"cc"
,
"timer-nested-start"
,
"1"
);
RedisModule_Call
(
ctx
,
"propagate-test.nested"
,
repl
?
"!"
:
""
);
RedisModuleCallReply
*
reply
=
RedisModule_Call
(
ctx
,
"propagate-test.nested"
,
repl
?
"!"
:
""
);
RedisModule_FreeCallReply
(
reply
);
RedisModule_Replicate
(
ctx
,
"INCRBY"
,
"cc"
,
"timer-nested-end"
,
"1"
);
}
...
...
@@ -178,7 +179,8 @@ int propagateTestNestedCommand(RedisModuleCtx *ctx, RedisModuleString **argv, in
reply
=
RedisModule_Call
(
ctx
,
"INCR"
,
"c!"
,
"using-call"
);
RedisModule_FreeCallReply
(
reply
);
RedisModule_Call
(
ctx
,
"propagate-test.simple"
,
"!"
);
reply
=
RedisModule_Call
(
ctx
,
"propagate-test.simple"
,
"!"
);
RedisModule_FreeCallReply
(
reply
);
RedisModule_Replicate
(
ctx
,
"INCR"
,
"c"
,
"counter-3"
);
RedisModule_Replicate
(
ctx
,
"INCR"
,
"c"
,
"counter-4"
);
...
...
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