diff options
Diffstat (limited to 'main/core_unreal.c')
-rw-r--r-- | main/core_unreal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/core_unreal.c b/main/core_unreal.c index ae7f9d2ab..481ed2d0c 100644 --- a/main/core_unreal.c +++ b/main/core_unreal.c @@ -955,6 +955,7 @@ struct ast_channel *ast_unreal_new_channels(struct ast_unreal_pvt *p, if (ast_channel_cc_params_init(owner, requestor ? ast_channel_get_cc_config_params((struct ast_channel *) requestor) : NULL)) { ao2_ref(p, -1); + ast_channel_tech_pvt_set(owner, NULL); ast_channel_unlock(owner); ast_channel_release(owner); return NULL; @@ -968,6 +969,7 @@ struct ast_channel *ast_unreal_new_channels(struct ast_unreal_pvt *p, "%s/%s-%08x;2", tech->type, p->name, (unsigned)generated_seqno))) { ast_log(LOG_WARNING, "Unable to allocate chan channel structure\n"); ao2_ref(p, -1); + ast_channel_tech_pvt_set(owner, NULL); ast_channel_release(owner); return NULL; } |