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
2b36950e
Commit
2b36950e
authored
Jul 06, 2017
by
antirez
Browse files
Free IO context if any in RDB loading code.
Thanks to @oranagra for spotting this bug.
parent
51ffd062
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
2b36950e
...
...
@@ -1415,6 +1415,10 @@ robj *rdbLoadObject(int rdbtype, rio *rdb) {
/* Call the rdb_load method of the module providing the 10 bit
* encoding version in the lower 10 bits of the module ID. */
void
*
ptr
=
mt
->
rdb_load
(
&
io
,
moduleid
&
1023
);
if
(
io
.
ctx
)
{
moduleFreeContext
(
io
.
ctx
);
zfree
(
io
.
ctx
);
}
/* Module v2 serialization has an EOF mark at the end. */
if
(
io
.
ver
==
2
)
{
...
...
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