mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix double-memory free in libpgeasy; problem introduced yesterday.
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user