Fixed a memory leak in redis-cli.c

This commit is contained in:
antirez 2011-10-28 17:43:04 +02:00
parent e1cf460cf1
commit db6a2e7f78

View File

@ -716,6 +716,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 ||