[asterisk-commits] rmudgett: branch 10 r370564 - in /branches/10: ./ channels/chan_misdn.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 30 11:49:16 CDT 2012
Author: rmudgett
Date: Mon Jul 30 11:49:12 2012
New Revision: 370564
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370564
Log:
Release B channel allocation on error path in chan_misdn.
........
Merged revisions 370563 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/channels/chan_misdn.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_misdn.c?view=diff&rev=370564&r1=370563&r2=370564
==============================================================================
--- branches/10/channels/chan_misdn.c (original)
+++ branches/10/channels/chan_misdn.c Mon Jul 30 11:49:12 2012
@@ -8000,6 +8000,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;
}
@@ -8008,6 +8009,7 @@
ast = misdn_new(cl, AST_STATE_RESERVED, args.ext, NULL, cap, 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