Fixed a memory leak in redis-cli.c

This commit is contained in:
antirez
2011-10-28 17:43:04 +02:00
parent cacab3b1c8
commit 7d31a020ea

View File

@@ -676,6 +676,7 @@ static void repl() {
if (argv == NULL) {
printf("Invalid argument(s)\n");
free(line);
continue;
} else if (argc > 0) {
if (strcasecmp(argv[0],"quit") == 0 ||