Skip to content
Browse files

Fixed a memory leak in redis-cli.c

  • Loading branch information...
1 parent cacab3b commit 7d31a020eaa316416a81984912d9645e9ddd07ac @antirez committed Oct 28, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/redis-cli.c
View
1 src/redis-cli.c
@@ -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 ||

0 comments on commit 7d31a02

Please sign in to comment.
Something went wrong with that request. Please try again.