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
bad7d097
Commit
bad7d097
authored
Aug 26, 2010
by
antirez
Browse files
fixed a memory leak in the new Set code
parent
5f19e8a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
bad7d097
...
...
@@ -714,6 +714,8 @@ robj *rdbLoadObject(int type, FILE *fp) {
* to regular hashtable encoded set */
if
(
o
->
encoding
==
REDIS_ENCODING_HT
)
{
dictAdd
((
dict
*
)
o
->
ptr
,
ele
,
NULL
);
}
else
{
decrRefCount
(
ele
);
}
}
}
else
if
(
type
==
REDIS_ZSET
)
{
...
...
tests/test_helper.tcl
View file @
bad7d097
...
...
@@ -11,7 +11,7 @@ source tests/support/util.tcl
set ::host 127.0.0.1
set ::port 16379
set ::traceleaks
0
set ::traceleaks
1
set ::valgrind 0
set ::denytags
{}
set ::allowtags
{}
...
...
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