mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
psql: Fix memory leak
The command \password username leaked memory.
This commit is contained in:
@ -953,6 +953,9 @@ exec_command(const char *cmd,
|
||||
PQclear(res);
|
||||
PQfreemem(encrypted_password);
|
||||
}
|
||||
|
||||
if (opt0)
|
||||
free(opt0);
|
||||
}
|
||||
|
||||
free(pw1);
|
||||
|
Reference in New Issue
Block a user