summaryrefslogtreecommitdiff
path: root/apps/app_milliwatt.c
diff options
context:
space:
mode:
authorBJ Weschke <bweschke@btwtech.com>2006-01-12 16:08:06 +0000
committerBJ Weschke <bweschke@btwtech.com>2006-01-12 16:08:06 +0000
commitaaa4c9aecc895776171443e02798e16c733eff1f (patch)
tree21f8ee3b9f7fc6bc080356a5027eab93eb1de1e1 /apps/app_milliwatt.c
parente825a748cfb32c0b93ef0a70618122548e98740c (diff)
More new memory wrapper work.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_milliwatt.c')
-rw-r--r--apps/app_milliwatt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c
index 112bc74f1..6c7718f52 100644
--- a/apps/app_milliwatt.c
+++ b/apps/app_milliwatt.c
@@ -60,7 +60,7 @@ static char digital_milliwatt[] = {0x1e,0x0b,0x0b,0x1e,0x9e,0x8b,0x8b,0x9e} ;
static void *milliwatt_alloc(struct ast_channel *chan, void *params)
{
int *indexp;
- indexp = malloc(sizeof(int));
+ indexp = ast_malloc(sizeof(*indexp));
if (indexp == NULL) return(NULL);
*indexp = 0;
return(indexp);