projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
postgresql plugin: Added another missing call to PQclear().
[collectd.git]
/
src
/
postgresql.c
diff --git
a/src/postgresql.c
b/src/postgresql.c
index
90e9f5d
..
faad16c
100644
(file)
--- 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;
}