summaryrefslogtreecommitdiff
path: root/daemon/mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/mysql.c')
-rw-r--r--daemon/mysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/mysql.c b/daemon/mysql.c
index d3f3271..091a607 100644
--- a/daemon/mysql.c
+++ b/daemon/mysql.c
@@ -315,7 +315,7 @@ static MYSQL* get_mysql_connection(const ha_request_t* rq, mysql_context_t* ctx)
my = mysql_init(NULL);
if(!my)
{
- ha_messagex(rq, LOG_ERR, "out of memory");
+ ha_memerr(rq);
return NULL;
}
@@ -762,7 +762,7 @@ int mysql_initialize(ha_context_t* context)
ctx->pool = (MYSQL**)malloc(sizeof(MYSQL*) * ctx->mysql_max);
if(!ctx->pool)
{
- ha_messagex(NULL, LOG_CRIT, "out of memory");
+ ha_memerr(NULL);
return HA_CRITERROR;
}