fix potentical memory leak in redis-cli

This commit is contained in:
hwware 2020-03-18 09:33:52 -04:00 committed by antirez
parent 700126e9cf
commit 2dcae61087

View File

@ -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.");