mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05: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…
Reference in New Issue
Block a user