Commit 34e489cb authored by antirez's avatar antirez
Browse files

SORT memory leak fixed.

parent a7c5be18
...@@ -579,9 +579,9 @@ void sortCommand(client *c) { ...@@ -579,9 +579,9 @@ void sortCommand(client *c) {
} }
/* Cleanup */ /* Cleanup */
if (sortval->type == OBJ_LIST || sortval->type == OBJ_SET) for (j = 0; j < vectorlen; j++)
for (j = 0; j < vectorlen; j++) decrRefCount(vector[j].obj);
decrRefCount(vector[j].obj);
decrRefCount(sortval); decrRefCount(sortval);
listRelease(operations); listRelease(operations);
for (j = 0; j < vectorlen; j++) { for (j = 0; j < vectorlen; j++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment