mirror of
https://github.com/fluencelabs/redis
synced 2025-05-14 11:31:21 +00:00
redis-cli: don't free historyfile, is used later.
This commit is contained in:
parent
97ce72fa2d
commit
f6b7df3aec
@ -1222,7 +1222,6 @@ static void repl(void) {
|
|||||||
if (historyfile != NULL) {
|
if (historyfile != NULL) {
|
||||||
history = 1;
|
history = 1;
|
||||||
linenoiseHistoryLoad(historyfile);
|
linenoiseHistoryLoad(historyfile);
|
||||||
sdsfree(historyfile);
|
|
||||||
}
|
}
|
||||||
cliLoadPreferences();
|
cliLoadPreferences();
|
||||||
}
|
}
|
||||||
@ -1232,6 +1231,7 @@ static void repl(void) {
|
|||||||
if (line[0] != '\0') {
|
if (line[0] != '\0') {
|
||||||
argv = cliSplitArgs(line,&argc);
|
argv = cliSplitArgs(line,&argc);
|
||||||
if (history) linenoiseHistoryAdd(line);
|
if (history) linenoiseHistoryAdd(line);
|
||||||
|
printf("HISTORY: %s\n", historyfile);
|
||||||
if (historyfile) linenoiseHistorySave(historyfile);
|
if (historyfile) linenoiseHistorySave(historyfile);
|
||||||
|
|
||||||
if (argv == NULL) {
|
if (argv == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user