]> git.saurik.com Git - redis.git/commitdiff
Fixed a redis-cli bug, was using free instead of zfree call
authorantirez <antirez@metal.(none)>
Tue, 27 Apr 2010 16:06:52 +0000 (18:06 +0200)
committerantirez <antirez@metal.(none)>
Tue, 27 Apr 2010 16:06:52 +0000 (18:06 +0200)
redis-cli.c

index d2bdb2dd5e6a062249a890bf6c34850fd5aa5c7d..f541b6ab413aa2ed5f51daae4b75ca6d01ee64a3 100644 (file)
@@ -568,7 +568,7 @@ static void repl() {
             /* Free the argument vector */
             for (j = 0; j < argc; j++)
                 sdsfree(argv[j]);
-            free(argv);
+            zfree(argv);
         }
         /* linenoise() returns malloc-ed lines like readline() */
         free(line);