Commit db6a2e7f authored by antirez's avatar antirez
Browse files

Fixed a memory leak in redis-cli.c

parent e1cf460c
...@@ -716,6 +716,7 @@ static void repl() { ...@@ -716,6 +716,7 @@ static void repl() {
if (argv == NULL) { if (argv == NULL) {
printf("Invalid argument(s)\n"); printf("Invalid argument(s)\n");
free(line);
continue; continue;
} else if (argc > 0) { } else if (argc > 0) {
if (strcasecmp(argv[0],"quit") == 0 || if (strcasecmp(argv[0],"quit") == 0 ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment