projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afca572
)
postgresql plugin: Added another missing call to PQclear().
author
Sebastian Harl
<sh@tokkee.org>
Tue, 14 Oct 2008 10:57:21 +0000
(12:57 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Thu, 16 Oct 2008 08:28:59 +0000
(10:28 +0200)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/postgresql.c
patch
|
blob
|
history
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;
}