mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
SORT memory leak fixed.
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user