mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Fix double-memory free in libpgeasy; problem introduced yesterday.
This commit is contained in:
parent
bdafb40077
commit
2e05d3ecdb
@ -65,7 +65,10 @@ disconnectdb()
|
||||
if (res != NULL &&
|
||||
in_result_block == FALSE &&
|
||||
was_get_unset_result == FALSE)
|
||||
{
|
||||
PQclear(res);
|
||||
res = NULL;
|
||||
}
|
||||
|
||||
PQfinish(conn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user