mirror of
http://github.com/valkey-io/valkey
synced 2024-11-21 16:46:15 +00:00
Fix redis-cli memory leak when sending set preference command.
This commit is contained in:
parent
c7197ff50f
commit
ac2a824aa9
@ -1439,6 +1439,8 @@ static void repl(void) {
|
||||
exit(0);
|
||||
} else if (argv[0][0] == ':') {
|
||||
cliSetPreferences(argv,argc,1);
|
||||
sdsfreesplitres(argv,argc);
|
||||
linenoiseFree(line);
|
||||
continue;
|
||||
} else if (strcasecmp(argv[0],"restart") == 0) {
|
||||
if (config.eval) {
|
||||
|
Loading…
Reference in New Issue
Block a user