From b6a3426ad81a1cf7f059e0712da8f70f208cfca0 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 6 May 2010 07:43:16 +0000 Subject: [PATCH] Merged revisions 261451 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ........ r261451 | tzafrir | 2010-05-06 10:27:31 +0300 (ה', 06 מאי 2010) | 4 lines When failing to configure, don't destroy 'cfg' twice Fixes a crash when some config section had an incorrect channel config. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@261453 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_dahdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 0b8b17c132..0be480f477 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -17267,7 +17267,7 @@ static int setup_dahdi(int reload) ast_mutex_unlock(&iflock); ast_config_destroy(cfg); if (ucfg) { - ast_config_destroy(cfg); + ast_config_destroy(ucfg); } return res; } -- 2.47.2