未验证 提交 b9e5be5f 编写于 作者: S Salvatore Sanfilippo 提交者: GitHub

Merge pull request #7005 from hwware/memoryleakfix-redis-cli

fix potential memory leak in redis-cli lua debug mode
......@@ -1993,6 +1993,8 @@ static void repl(void) {
if (config.eval) {
config.eval_ldb = 1;
config.output = OUTPUT_RAW;
sdsfreesplitres(argv,argc);
linenoiseFree(line);
return; /* Return to evalMode to restart the session. */
} else {
printf("Use 'restart' only in Lua debugging mode.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册