From e61246f70a8e81b034db36f2dd20ea0086198808 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 4 Dec 2015 21:40:16 +0100 Subject: [PATCH] postgresql plugin: don't exit on malloc failure Signed-off-by: Florian Forster --- src/postgresql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postgresql.c b/src/postgresql.c index c240e543..e613662a 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; -- 2.11.0