提交 bad7d097 编写于 作者: A antirez

fixed a memory leak in the new Set code

上级 5f19e8a4
......@@ -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 {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册