Fixed a redis-cli bug, was using free instead of zfree call

This commit is contained in:
antirez 2010-04-27 18:06:52 +02:00
parent 8f63ddca00
commit 8ff6a48b99

View 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);