Commit 7d31a020 authored by antirez's avatar antirez
Browse files

Fixed a memory leak in redis-cli.c

parent cacab3b1
...@@ -676,6 +676,7 @@ static void repl() { ...@@ -676,6 +676,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