]> git.saurik.com Git - redis.git/blobdiff - redis.c
Merge git://github.com/lucsky/redis
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index fa0d6158f4ae173ac313667a9af60bfe2ad3b094..40b9264ecef899e5ccd6919adf44b071eae6e354 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -2626,7 +2626,7 @@ static void sortCommand(redisClient *c) {
     /* Create a list of operations to perform for every sorted element.
      * Operations can be GET/DEL/INCR/DECR */
     operations = listCreate();
-    listSetFreeMethod(operations,free);
+    listSetFreeMethod(operations,zfree);
     j = 2;
 
     /* Now we need to protect sortval incrementing its count, in the future