Commit 46e241ac authored by dejun.xdj's avatar dejun.xdj
Browse files

Fix redis-cli memory leak when sending set preference command.

parent e344aa4a
......@@ -1412,6 +1412,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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment