diff options
Diffstat (limited to 'cel/cel_custom.c')
-rw-r--r-- | cel/cel_custom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cel/cel_custom.c b/cel/cel_custom.c index 54b1e4f5e..871408716 100644 --- a/cel/cel_custom.c +++ b/cel/cel_custom.c @@ -128,7 +128,6 @@ static void custom_log(const struct ast_event *event, void *userdata) } dummy = ast_cel_fabricate_channel_from_event(event); - if (!dummy) { ast_log(LOG_ERROR, "Unable to fabricate channel from CEL event.\n"); return; @@ -163,7 +162,7 @@ static void custom_log(const struct ast_event *event, void *userdata) AST_RWLIST_UNLOCK(&sinks); - ast_channel_release(dummy); + ast_channel_unref(dummy); } static int unload_module(void) |