From: Sebastian Harl Date: Tue, 14 Oct 2008 10:57:21 +0000 (+0200) Subject: postgresql plugin: Added another missing call to PQclear(). X-Git-Tag: collectd-4.5.1~2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=1d3be23f9d6474a6f8e530904df4f27569b6ddc5;p=collectd.git postgresql plugin: Added another missing call to PQclear(). Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- 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; }