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

This commit is contained in:
antirez
2016-05-05 13:57:57 +02:00
parent 055958aa3b
commit 33c8a59e97

View File

@ -986,6 +986,7 @@ static void repl(void) {
if (line[0] != '\0') {
argv = sdssplitargs(line,&argc);
if (history) linenoiseHistoryAdd(line);
printf("HISTORY: %s\n", historyfile);
if (historyfile) linenoiseHistorySave(historyfile);
if (argv == NULL) {