[asterisk-commits] rmudgett: branch 1.8 r370563 - /branches/1.8/channels/chan_misdn.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 30 11:47:23 CDT 2012
Author: rmudgett
Date: Mon Jul 30 11:47:19 2012
New Revision: 370563
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370563
Log:
Release B channel allocation on error path in chan_misdn.
Modified:
branches/1.8/channels/chan_misdn.c
Modified: branches/1.8/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_misdn.c?view=diff&rev=370563&r1=370562&r2=370563
==============================================================================
--- branches/1.8/channels/chan_misdn.c (original)
+++ branches/1.8/channels/chan_misdn.c Mon Jul 30 11:47:19 2012
@@ -7998,6 +7998,7 @@
/* 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;
}
@@ -8006,6 +8007,7 @@
ast = misdn_new(cl, AST_STATE_RESERVED, args.ext, NULL, format, requestor ? requestor->linkedid : 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;
}
More information about the asterisk-commits
mailing list