aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/pgbench/pgbench.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index 7b5bc449fcd..49670768f5c 100644
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -4267,9 +4267,8 @@ free_command(Command *command)
termPQExpBuffer(&command->lines);
if (command->first_line)
pg_free(command->first_line);
- if (command->argv)
- for (int i = 0; i < command->argc; i++)
- pg_free(command->argv[i]);
+ for (int i = 0; i < command->argc; i++)
+ pg_free(command->argv[i]);
if (command->varprefix)
{
for (int i = 0; i < command->varprefix_max; i++)