mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
psql: Fix memory leak
The command \password username leaked memory.
This commit is contained in:
parent
1575fbcb79
commit
1b9f774090
@ -953,6 +953,9 @@ exec_command(const char *cmd,
|
||||
PQclear(res);
|
||||
PQfreemem(encrypted_password);
|
||||
}
|
||||
|
||||
if (opt0)
|
||||
free(opt0);
|
||||
}
|
||||
|
||||
free(pw1);
|
||||
|
Loading…
Reference in New Issue
Block a user