aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_cdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_cdr.c')
-rwxr-xr-xapps/app_cdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_cdr.c b/apps/app_cdr.c
index 1720261a8..ce04f72f6 100755
--- a/apps/app_cdr.c
+++ b/apps/app_cdr.c
@@ -31,7 +31,7 @@ LOCAL_USER_DECL;
static int nocdr_exec(struct ast_channel *chan, void *data)
{
if (chan->cdr) {
- free(chan->cdr);
+ ast_cdr_free(chan->cdr);
chan->cdr = NULL;
}
return 0;