Unverified Commit 18b7f711 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #4932 from 0xtonyxia/fix-redis-cli-set-prefer-memory-leak

Fix redis-cli memory leak when sending set :preference command.
parents ef7ccad1 46e241ac
...@@ -1663,6 +1663,8 @@ static void repl(void) { ...@@ -1663,6 +1663,8 @@ static void repl(void) {
exit(0); exit(0);
} else if (argv[0][0] == ':') { } else if (argv[0][0] == ':') {
cliSetPreferences(argv,argc,1); cliSetPreferences(argv,argc,1);
sdsfreesplitres(argv,argc);
linenoiseFree(line);
continue; continue;
} else if (strcasecmp(argv[0],"restart") == 0) { } else if (strcasecmp(argv[0],"restart") == 0) {
if (config.eval) { if (config.eval) {
......
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