mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Solved a memory leak with Hashes
This commit is contained in:
parent
dd88747b78
commit
6d4fb107b2
2
redis.c
2
redis.c
@ -3590,8 +3590,6 @@ static robj *rdbLoadObject(int type, FILE *fp) {
|
|||||||
tryObjectEncoding(key);
|
tryObjectEncoding(key);
|
||||||
tryObjectEncoding(val);
|
tryObjectEncoding(val);
|
||||||
dictAdd((dict*)o->ptr,key,val);
|
dictAdd((dict*)o->ptr,key,val);
|
||||||
incrRefCount(key);
|
|
||||||
incrRefCount(val);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user