aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_milliwatt.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-12 16:08:06 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-12 16:08:06 +0000
commitd6bead82264a99fbde0a30b0334d5391251ac139 (patch)
tree21f8ee3b9f7fc6bc080356a5027eab93eb1de1e1 /apps/app_milliwatt.c
parent1228be721e5731606e2e9553e63883774269a621 (diff)
More new memory wrapper work.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8012 f38db490-d61c-443f-a65b-d21fe96a405b
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);