aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_adsiprog.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-06 21:20:11 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-06 21:20:11 +0000
commiteb5d461ed4688cafadc76bebf329a2fae454dc12 (patch)
tree5503cb153c9de46c07e3a0a521cc996926ed375b /apps/app_adsiprog.c
parent125558c76fd4870a9133e4974cce6410c89a3593 (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 'apps/app_adsiprog.c')
-rw-r--r--apps/app_adsiprog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c
index 40330152b..b07a950a2 100644
--- a/apps/app_adsiprog.c
+++ b/apps/app_adsiprog.c
@@ -1384,11 +1384,11 @@ static struct adsi_script *compile_script(char *script)
break;
case STATE_INSUB:
ast_log(LOG_WARNING, "Missing ENDSUB at end of file %s\n", script);
- free(scr);
+ ast_free(scr);
return NULL;
case STATE_INKEY:
ast_log(LOG_WARNING, "Missing ENDKEY at end of file %s\n", script);
- free(scr);
+ ast_free(scr);
return NULL;
}
err = 0;
@@ -1414,7 +1414,7 @@ static struct adsi_script *compile_script(char *script)
}
if (err) {
- free(scr);
+ ast_free(scr);
return NULL;
}
return scr;
@@ -1451,7 +1451,7 @@ static int adsi_prog(struct ast_channel *chan, char *script)
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "User rejected download attempt\n");
ast_log(LOG_NOTICE, "User rejected download on channel %s\n", chan->name);
- free(scr);
+ ast_free(scr);
return -1;
}
@@ -1538,10 +1538,10 @@ static int adsi_prog(struct ast_channel *chan, char *script)
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Download attempt failed\n");
ast_log(LOG_NOTICE, "Download failed on %s\n", chan->name);
- free(scr);
+ ast_free(scr);
return -1;
}
- free(scr);
+ ast_free(scr);
ast_adsi_unload_session(chan);
return 0;
}