mirror of
https://github.com/fluencelabs/redis
synced 2025-07-06 12:21:35 +00:00
redis-cli: don't free historyfile, is used later.
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user