From: Ruben Kerkhof Date: Fri, 4 Dec 2015 20:40:16 +0000 (+0100) Subject: postgresql plugin: don't exit on malloc failure X-Git-Tag: collectd-5.5.1~31^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e61246f70a8e81b034db36f2dd20ea0086198808;p=thirdparty%2Fcollectd.git postgresql plugin: don't exit on malloc failure Signed-off-by: Florian Forster --- diff --git a/src/postgresql.c b/src/postgresql.c index c240e5438..e613662ae 100644 --- 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 *) smalloc (sizeof (*data)); + data = (c_psql_user_data_t *) malloc (sizeof (*data)); if (NULL == data) { log_err ("Out of memory."); return -1;