aboutsummaryrefslogtreecommitdiffstats
path: root/main/fixedjitterbuf.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 /main/fixedjitterbuf.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 'main/fixedjitterbuf.c')
-rw-r--r--main/fixedjitterbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/fixedjitterbuf.c b/main/fixedjitterbuf.c
index 1d7a5cc30..a9d0f8707 100644
--- a/main/fixedjitterbuf.c
+++ b/main/fixedjitterbuf.c
@@ -66,12 +66,12 @@ static int resynch_jb(struct fixed_jb *jb, void *data, long ms, long ts, long no
static inline struct fixed_jb_frame *alloc_jb_frame(struct fixed_jb *jb)
{
- return ast_calloc(1, sizeof(struct fixed_jb_frame));
+ return ast_calloc(1, sizeof(*jb));
}
static inline void release_jb_frame(struct fixed_jb *jb, struct fixed_jb_frame *frame)
{
- free(frame);
+ ast_free(frame);
}
static void get_jb_head(struct fixed_jb *jb, struct fixed_jb_frame *frame)
@@ -131,7 +131,7 @@ void fixed_jb_destroy(struct fixed_jb *jb)
/* jitterbuf MUST be empty before it can be destroyed */
ASSERT(jb->frames == NULL);
- free(jb);
+ ast_free(jb);
}