if (reload) {
AST_RWLIST_UNLOCK(&columns);
}
+ ast_config_destroy(cfg);
return AST_MODULE_LOAD_SUCCESS;
}
if (reload) {
AST_RWLIST_UNLOCK(&columns);
}
+ ast_config_destroy(cfg);
return AST_MODULE_LOAD_FAILURE;
}
pNewAlias = malloc(sizeof(struct ooAliases));
if (!pNewAlias) {
ast_log(LOG_ERROR, "Failed to allocate memory for h323id alias\n");
+ ast_config_destroy(cfg);
return 1;
}
if (gAliasList == NULL) { /* first h323id - set as callerid if callerid is not set */
pNewAlias = malloc(sizeof(struct ooAliases));
if (!pNewAlias) {
ast_log(LOG_ERROR, "Failed to allocate memory for e164 alias\n");
+ ast_config_destroy(cfg);
return 1;
}
pNewAlias->type = T_H225AliasAddress_dialedDigits;
pNewAlias = malloc(sizeof(struct ooAliases));
if (!pNewAlias) {
ast_log(LOG_ERROR, "Failed to allocate memory for email alias\n");
+ ast_config_destroy(cfg);
return 1;
}
pNewAlias->type = T_H225AliasAddress_email_ID;
cat = ast_category_browse(cfg, cat);
}
+ ast_config_destroy(cfg);
gtalk_update_externip();
gtalk_free_candidates(global_candidates);
return 1;