mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-07 00:20:24 +01: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