aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_odbc.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-15 12:30:45 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-15 12:30:45 +0000
commit4f30ac78cd5f983d07cfd72e63bdbc4f9251f79c (patch)
treed11b307d235a53e374583e14ad5212465ec671c5 /res/res_odbc.c
parent13e26b9db0c77c6c4843d49717c195687265a305 (diff)
ast_calloc() already reports OOM conditions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34241 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_odbc.c')
-rw-r--r--res/res_odbc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index ca8007ce6..c2df9b0e3 100644
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -256,7 +256,6 @@ static int load_odbc_config(void)
new = ast_calloc(1, sizeof(*new));
if (!new) {
- ast_log(LOG_ERROR, "Memory error while loading configuration.\n");
res = -1;
break;
}
@@ -397,7 +396,6 @@ struct odbc_obj *odbc_request_obj(const char *name, int check)
class->count++;
obj = ast_calloc(1, sizeof(*obj));
if (!obj) {
- ast_log(LOG_ERROR, "Out of memory\n");
AST_LIST_UNLOCK(&class->odbc_obj);
return NULL;
}
@@ -417,7 +415,6 @@ struct odbc_obj *odbc_request_obj(const char *name, int check)
/* No entry: build one */
obj = ast_calloc(1, sizeof(*obj));
if (!obj) {
- ast_log(LOG_ERROR, "Out of memory\n");
AST_LIST_UNLOCK(&class->odbc_obj);
return NULL;
}
@@ -589,7 +586,6 @@ static int reload(void *mod)
}
if (!new) {
- ast_log(LOG_ERROR, "Memory error while loading configuration.\n");
res = -1;
break;
}