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 /main/enum.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 'main/enum.c')
-rw-r--r-- | main/enum.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/enum.c b/main/enum.c index 140a38ff9..a860dcb4c 100644 --- a/main/enum.c +++ b/main/enum.c @@ -443,7 +443,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds } if (chan && ast_autoservice_start(chan) < 0) { - free(context); + ast_free(context); return -1; } @@ -523,11 +523,11 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds if (!argcontext) { for (k = 0; k < context->naptr_rrs_count; k++) { - free(context->naptr_rrs[k].result); - free(context->naptr_rrs[k].tech); + ast_free(context->naptr_rrs[k].result); + ast_free(context->naptr_rrs[k].tech); } - free(context->naptr_rrs); - free(context); + ast_free(context->naptr_rrs); + ast_free(context); } else *argcontext = context; @@ -622,7 +622,7 @@ int ast_enum_init(void) while (s) { sl = s; s = s->next; - free(sl); + ast_free(sl); } toplevs = NULL; cfg = ast_config_load("enum.conf"); |