summaryrefslogtreecommitdiff
path: root/daemon/mysql.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-03-22 23:59:38 +0000
committerStef Walter <stef@memberwebs.com>2005-03-22 23:59:38 +0000
commit84f393a6cf75df90c7836fc2f3356a5543983779 (patch)
tree6de338710d462172e3cd6a31d946e4ae99d55268 /daemon/mysql.c
parent3ecaf9c3c9bb83f5e611beaeeccc19909630036a (diff)
Fix memory and buffer problems.
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;
}