new = ast_calloc(1, sizeof(*new));
if (!new) {
- ast_log(LOG_ERROR, "Memory error while loading configuration.\n");
res = -1;
break;
}
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;
}
/* 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;
}
}
if (!new) {
- ast_log(LOG_ERROR, "Memory error while loading configuration.\n");
res = -1;
break;
}