git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@424985
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
profiles = ao2_container_alloc(MAX_PROFILE_BUCKETS, phone_profile_hash_fn, phone_profile_cmp_fn);
if (!profiles) {
ast_log(LOG_ERROR, "Unable to allocate profiles container.\n");
- return -1;
+ return AST_MODULE_LOAD_DECLINE;
}
http_routes = ao2_container_alloc(MAX_ROUTE_BUCKETS, http_route_hash_fn, http_route_cmp_fn);
ao2_cleanup(users);
delete_providers();
ao2_cleanup(providers);
- return -1;
+ return AST_MODULE_LOAD_DECLINE;
}