提交 ac2a824a 编写于 作者: D dejun.xdj 提交者: antirez

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

上级 c7197ff5
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册