From d6bead82264a99fbde0a30b0334d5391251ac139 Mon Sep 17 00:00:00 2001 From: bweschke Date: Thu, 12 Jan 2006 16:08:06 +0000 Subject: More new memory wrapper work. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8012 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_milliwatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_milliwatt.c') 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); -- cgit v1.2.3