mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Fix redis-cli memory leak when sending set preference command.
This commit is contained in:
parent
e344aa4a6d
commit
46e241ac8e
@ -1412,6 +1412,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…
x
Reference in New Issue
Block a user