diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 69fac83cd58..6c3f0aa69d6 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -953,6 +953,9 @@ exec_command(const char *cmd, PQclear(res); PQfreemem(encrypted_password); } + + if (opt0) + free(opt0); } free(pw1);