mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 16:21:03 +00:00
Fixed a memory leak in redis-cli.c
This commit is contained in:
parent
e1cf460cf1
commit
db6a2e7f78
@ -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 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user