From 2e05d3ecdbbd4d0941215b4616e18cf4bae61333 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 14 Dec 2001 00:52:53 +0000 Subject: [PATCH] Fix double-memory free in libpgeasy; problem introduced yesterday. --- src/interfaces/libpgeasy/libpgeasy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/interfaces/libpgeasy/libpgeasy.c b/src/interfaces/libpgeasy/libpgeasy.c index 2ccae266a4..c9bbdf39c8 100644 --- a/src/interfaces/libpgeasy/libpgeasy.c +++ b/src/interfaces/libpgeasy/libpgeasy.c @@ -65,7 +65,10 @@ disconnectdb() if (res != NULL && in_result_block == FALSE && was_get_unset_result == FALSE) + { PQclear(res); + res = NULL; + } PQfinish(conn); } -- 2.40.0