aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authortzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-06 07:43:16 +0000
committertzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-06 07:43:16 +0000
commit7661fc8d6c1e9b014d24c31765263a94b1decb6e (patch)
treef0175f3f46d82dc6d6a11b27f3c1f8b24014aa74 /channels
parent71861b28abbe98d03c54bb623b1e38edf25c9d99 (diff)
Merged revisions 261451 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ 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: http://svn.digium.com/svn/asterisk/branches/1.6.2@261453 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 0b8b17c13..0be480f47 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;
}