Commit 86691ccf authored by hwware's avatar hwware
Browse files

fix potentical memory leak in redis-cli

parent b3a97004
...@@ -1989,6 +1989,8 @@ static void repl(void) { ...@@ -1989,6 +1989,8 @@ static void repl(void) {
if (config.eval) { if (config.eval) {
config.eval_ldb = 1; config.eval_ldb = 1;
config.output = OUTPUT_RAW; config.output = OUTPUT_RAW;
sdsfreesplitres(argv,argc);
linenoiseFree(line);
return; /* Return to evalMode to restart the session. */ return; /* Return to evalMode to restart the session. */
} else { } else {
printf("Use 'restart' only in Lua debugging mode."); printf("Use 'restart' only in Lua debugging mode.");
......
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