Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ac2a824a
Commit
ac2a824a
authored
May 21, 2018
by
dejun.xdj
Committed by
antirez
May 29, 2018
Browse files
Fix redis-cli memory leak when sending set preference command.
parent
c7197ff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
ac2a824a
...
...
@@ -1439,6 +1439,8 @@ static void repl(void) {
exit(0);
} else if (argv[0][0] == ':') {
cliSetPreferences(argv,argc,1);
sdsfreesplitres(argv,argc);
linenoiseFree(line);
continue;
} else if (strcasecmp(argv[0],"restart") == 0) {
if (config.eval) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment