From 84f393a6cf75df90c7836fc2f3356a5543983779 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 22 Mar 2005 23:59:38 +0000 Subject: Fix memory and buffer problems. --- daemon/mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/mysql.c') 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; } -- cgit v1.2.3