diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-06 21:20:11 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-06 21:20:11 +0000 |
commit | eb5d461ed4688cafadc76bebf329a2fae454dc12 (patch) | |
tree | 5503cb153c9de46c07e3a0a521cc996926ed375b /res/res_indications.c | |
parent | 125558c76fd4870a9133e4974cce6410c89a3593 (diff) |
Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_indications.c')
-rw-r--r-- | res/res_indications.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/res/res_indications.c b/res/res_indications.c index d149e21ba..1a8aafc76 100644 --- a/res/res_indications.c +++ b/res/res_indications.c @@ -100,7 +100,7 @@ static int handle_add_indication(int fd, int argc, char *argv[]) ast_copy_string(tz->country,argv[2],sizeof(tz->country)); if (ast_register_indication_country(tz)) { ast_log(LOG_WARNING, "Unable to register new country\n"); - free(tz); + ast_free(tz); return -1; } created_country = 1; @@ -293,7 +293,7 @@ static int ind_load_module(void) ast_copy_string(azone->alias, cxt, sizeof(azone->alias)); if (ast_register_indication_country(azone)) { ast_log(LOG_WARNING, "Unable to register indication alias at line %d.\n",v->lineno); - free(tones); + ast_free(tones); } /* next item */ country = strsep(&c,","); @@ -326,9 +326,9 @@ out: v = v->next; if (tones->description[0] || tones->alias[0] || tones->tones) { if (ast_register_indication_country(tones)) { ast_log(LOG_WARNING, "Unable to register indication at line %d.\n",v->lineno); - free(tones); + ast_free(tones); } - } else free(tones); + } else ast_free(tones); cxt = ast_category_browse(cfg, cxt); } |