Commit 33c8a59e authored by antirez's avatar antirez
Browse files

redis-cli: don't free historyfile, is used later.

parent 055958aa
...@@ -986,6 +986,7 @@ static void repl(void) { ...@@ -986,6 +986,7 @@ static void repl(void) {
if (line[0] != '\0') { if (line[0] != '\0') {
argv = sdssplitargs(line,&argc); argv = sdssplitargs(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) {
......
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