mirror of
https://github.com/fluencelabs/redis
synced 2025-06-17 03:01:20 +00:00
Fix redis-cli memory leak when sending set preference command.
This commit is contained in:
@ -1439,6 +1439,8 @@ static void repl(void) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
} else if (argv[0][0] == ':') {
|
} else if (argv[0][0] == ':') {
|
||||||
cliSetPreferences(argv,argc,1);
|
cliSetPreferences(argv,argc,1);
|
||||||
|
sdsfreesplitres(argv,argc);
|
||||||
|
linenoiseFree(line);
|
||||||
continue;
|
continue;
|
||||||
} else if (strcasecmp(argv[0],"restart") == 0) {
|
} else if (strcasecmp(argv[0],"restart") == 0) {
|
||||||
if (config.eval) {
|
if (config.eval) {
|
||||||
|
Reference in New Issue
Block a user