Commit 2e05d3ec authored by Bruce Momjian's avatar Bruce Momjian

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

parent bdafb400
...@@ -65,7 +65,10 @@ disconnectdb() ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment