mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
fixed a memory leak in the new Set code
This commit is contained in:
parent
5f19e8a4a5
commit
bad7d097e9
@ -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) {
|
||||
|
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user