summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--funcs/func_cdr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/funcs/func_cdr.c b/funcs/func_cdr.c
index c9fce23d2..2d120bb90 100644
--- a/funcs/func_cdr.c
+++ b/funcs/func_cdr.c
@@ -540,8 +540,7 @@ static int cdr_prop_write(struct ast_channel *chan, const char *cmd, char *parse
const char *value)
{
RAII_VAR(struct stasis_message *, message, NULL, ao2_cleanup);
- RAII_VAR(struct cdr_func_payload *, payload,
- ao2_alloc(sizeof(*payload), NULL), ao2_cleanup);
+ RAII_VAR(struct cdr_func_payload *, payload, NULL, ao2_cleanup);
RAII_VAR(struct stasis_message_router *, router, ast_cdr_message_router(), ao2_cleanup);
if (!chan) {