mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
memory leak introduced in the latest big changes fixed
This commit is contained in:
parent
44262c58a4
commit
4c8f23700b
4
redis.c
4
redis.c
@ -9403,7 +9403,9 @@ static int vmSwapOneObject(int usethreads) {
|
||||
|
||||
/* Swap it */
|
||||
if (usethreads) {
|
||||
vmSwapObjectThreaded(createStringObject(key,sdslen(key)),val,best_db);
|
||||
robj *keyobj = createStringObject(key,sdslen(key));
|
||||
vmSwapObjectThreaded(keyobj,val,best_db);
|
||||
decrRefCount(keyobj);
|
||||
return REDIS_OK;
|
||||
} else {
|
||||
vmpointer *vp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user