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
cd627d4e
Commit
cd627d4e
authored
Jun 05, 2010
by
Pieter Noordhuis
Browse files
fixed two leaks for the dual encoded lists
parent
ab193fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
cd627d4e
...
...
@@ -4191,7 +4191,6 @@ static robj *rdbLoadObject(int type, FILE *fp) {
}
else
{
ele
=
tryObjectEncoding
(
ele
);
listAddNodeTail
(
o
->
ptr
,
ele
);
incrRefCount
(
ele
);
}
}
}
else
if
(
type
==
REDIS_SET
)
{
...
...
@@ -5128,6 +5127,7 @@ static void listTypeConvert(robj *subject, int enc) {
if
(
enc
==
REDIS_ENCODING_LIST
)
{
list
*
l
=
listCreate
();
listSetFreeMethod
(
l
,
decrRefCount
);
/* listTypeGet returns a robj with incremented refcount */
li
=
listTypeInitIterator
(
subject
,
0
,
REDIS_TAIL
);
...
...
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