diff options
Diffstat (limited to 'src/sort.c')
-rw-r--r-- | src/sort.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c index 536302bda..788f73a59 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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++) { |