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
02db338a
Commit
02db338a
authored
May 05, 2016
by
antirez
Browse files
redis-cli: don't free historyfile, is used later.
parent
4c53bab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
02db338a
...
...
@@ -1222,7 +1222,6 @@ static void repl(void) {
if (historyfile != NULL) {
history = 1;
linenoiseHistoryLoad(historyfile);
sdsfree
(
historyfile
);
}
cliLoadPreferences();
}
...
...
@@ -1232,6 +1231,7 @@ static void repl(void) {
if (line[0] != '\0') {
argv = cliSplitArgs(line,&argc);
if (history) linenoiseHistoryAdd(line);
printf("HISTORY: %s\n", historyfile);
if (historyfile) linenoiseHistorySave(historyfile);
if (argv == NULL) {
...
...
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