Fix double-memory free in libpgeasy; problem introduced yesterday.

This commit is contained in:
Bruce Momjian 2001-12-14 00:52:53 +00:00
parent bdafb40077
commit 2e05d3ecdb

View File

@ -65,7 +65,10 @@ disconnectdb()
if (res != NULL &&
in_result_block == FALSE &&
was_get_unset_result == FALSE)
{
PQclear(res);
res = NULL;
}
PQfinish(conn);
}