mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Merge pull request #7005 from hwware/memoryleakfix-redis-cli
fix potential memory leak in redis-cli lua debug mode
This commit is contained in:
commit
b9e5be5f56
@ -1993,6 +1993,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…
Reference in New Issue
Block a user