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 /channels/chan_local.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 'channels/chan_local.c')
-rw-r--r-- | channels/chan_local.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index 8d588d79a..1fd7f2fae 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -178,7 +178,7 @@ retrylock: return and destroy p. */ ast_mutex_unlock(&p->lock); ast_mutex_destroy(&p->lock); - free(p); + ast_free(p); return -1; } if (!other) { @@ -530,7 +530,7 @@ static int local_hangup(struct ast_channel *ast) /* And destroy */ if (!glaredetect) { ast_mutex_destroy(&p->lock); - free(p); + ast_free(p); } return 0; } @@ -577,7 +577,7 @@ static struct local_pvt *local_alloc(const char *data, int format) if (!ast_exists_extension(NULL, tmp->context, tmp->exten, 1, NULL)) { ast_log(LOG_NOTICE, "No such extension/context %s@%s creating local channel\n", tmp->exten, tmp->context); ast_mutex_destroy(&tmp->lock); - free(tmp); + ast_free(tmp); tmp = NULL; } else { /* Add to list */ |