fix potentical memory leak in redis-cli
This commit is contained in:
parent
498e28f98b
commit
ee1443973c
@ -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.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user