SORT memory leak fixed.

This commit is contained in:
antirez 2015-09-04 10:09:32 +02:00
parent a7c5be18a8
commit 34e489cb8c

View File

@ -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++) {