From 1d3be23f9d6474a6f8e530904df4f27569b6ddc5 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 14 Oct 2008 12:57:21 +0200 Subject: [PATCH] postgresql plugin: Added another missing call to PQclear(). Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- src/postgresql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/postgresql.c b/src/postgresql.c index 90e9f5db..faad16cd 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -428,6 +428,7 @@ static int c_psql_exec_query (c_psql_database_t *db, int idx) log_err ("SQL query returned wrong number of fields " "(expected: %i, got: %i)", query->cols_num, cols); log_info ("SQL query was: %s", query->query); + PQclear (res); return -1; } -- 2.30.2