diff options
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index d00b594fb..82939614a 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -8007,6 +8007,7 @@ static struct ast_channel *misdn_request(const char *type, struct ast_format_cap /* create ast_channel and link all the objects together */ cl = chan_list_init(ORG_AST); if (!cl) { + misdn_lib_release(newbc); ast_log(LOG_ERROR, "Could not create call record for Dial(%s)\n", dial_str); return NULL; } @@ -8015,6 +8016,7 @@ static struct ast_channel *misdn_request(const char *type, struct ast_format_cap ast = misdn_new(cl, AST_STATE_RESERVED, args.ext, NULL, cap, requestor ? ast_channel_linkedid(requestor) : NULL, port, channel); if (!ast) { chan_list_unref(cl, "Failed to create a new channel"); + misdn_lib_release(newbc); ast_log(LOG_ERROR, "Could not create Asterisk channel for Dial(%s)\n", dial_str); return NULL; } |