mirror of
https://github.com/postgres/postgres.git
synced 2025-06-07 00:02:00 -04: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 &&
|
if (res != NULL &&
|
||||||
in_result_block == FALSE &&
|
in_result_block == FALSE &&
|
||||||
was_get_unset_result == FALSE)
|
was_get_unset_result == FALSE)
|
||||||
|
{
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
res = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
PQfinish(conn);
|
PQfinish(conn);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user