projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c3e99
)
postgresql plugin: don't exit on malloc failure
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 20:40:16 +0000
(21:40 +0100)
committer
Florian Forster
<octo@collectd.org>
Sat, 5 Dec 2015 07:51:03 +0000
(08:51 +0100)
Signed-off-by: Florian Forster <octo@collectd.org>
src/postgresql.c
patch
|
blob
|
history
diff --git
a/src/postgresql.c
b/src/postgresql.c
index
c240e54
..
e613662
100644
(file)
--- a/
src/postgresql.c
+++ b/
src/postgresql.c
@@
-1042,7
+1042,7
@@
static int config_query_param_add (udb_query_t *q, oconfig_item_t *ci)
data = udb_query_get_user_data (q);
if (NULL == data) {
- data = (c_psql_user_data_t *)
s
malloc (sizeof (*data));
+ data = (c_psql_user_data_t *) malloc (sizeof (*data));
if (NULL == data) {
log_err ("Out of memory.");
return -1;