diff options
Diffstat (limited to 'src/bin/psql/input.c')
-rw-r--r-- | src/bin/psql/input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index 416185d659f..6cc7ddda71e 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -158,8 +158,7 @@ pg_send_history(PQExpBuffer history_buf) else { /* Save each previous line for ignoredups processing */ - if (prev_hist) - free(prev_hist); + free(prev_hist); prev_hist = pg_strdup(s); /* And send it to readline */ add_history(s); |