mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
fix potentical memory leak in redis-cli
This commit is contained in:
parent
cdcab0e820
commit
eb80887936
1 changed files with 2 additions and 0 deletions
|
|
@ -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.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue