mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 09:17:20 +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);
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user