summaryrefslogtreecommitdiff
path: root/daemon/pgsql.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/pgsql.c
parent3ecaf9c3c9bb83f5e611beaeeccc19909630036a (diff)
Fix memory and buffer problems.
Diffstat (limited to 'daemon/pgsql.c')
-rw-r--r--daemon/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/pgsql.c b/daemon/pgsql.c
index 1870049..13ecd85 100644
--- a/daemon/pgsql.c
+++ b/daemon/pgsql.c
@@ -799,7 +799,7 @@ int pgsql_init(ha_context_t* context)
ctx->pool = (PGconn**)malloc(sizeof(PGconn*) * ctx->pgsql_max);
if(!ctx->pool)
{
- ha_messagex(NULL, LOG_CRIT, "out of memory");
+ ha_memerr(NULL);
return HA_CRITERROR;
}