]> git.saurik.com Git - redis.git/commitdiff
Fixed a memory leak in redis-cli.c
authorantirez <antirez@gmail.com>
Fri, 28 Oct 2011 15:43:04 +0000 (17:43 +0200)
committerantirez <antirez@gmail.com>
Fri, 28 Oct 2011 15:43:04 +0000 (17:43 +0200)
src/redis-cli.c

index 1e9f83174fb2f375daed33c38d84f39329448d1f..cbaac3f95e774f6504308ae7d5e3076a2ad732c3 100644 (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 ||