mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
SORT memory leak fixed.
This commit is contained in:
parent
a7c5be18a8
commit
34e489cb8c
@ -579,9 +579,9 @@ void sortCommand(client *c) {
|
||||
}
|
||||
|
||||
/* Cleanup */
|
||||
if (sortval->type == OBJ_LIST || sortval->type == OBJ_SET)
|
||||
for (j = 0; j < vectorlen; j++)
|
||||
decrRefCount(vector[j].obj);
|
||||
for (j = 0; j < vectorlen; j++)
|
||||
decrRefCount(vector[j].obj);
|
||||
|
||||
decrRefCount(sortval);
|
||||
listRelease(operations);
|
||||
for (j = 0; j < vectorlen; j++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user