aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-06 07:27:31 +0000
committertzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-06 07:27:31 +0000
commit71b68cced152645012dc0abf887f427cf32a7f9b (patch)
treeffb39f69e868f78e705ed774e347dcf54534b42c
parent88c9dfe3a5efe6ffaa4a033f74a393f4a62e50ed (diff)
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/trunk@261451 f38db490-d61c-443f-a65b-d21fe96a405b
-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 3c48be7a3..601c6efd1 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -17722,7 +17722,7 @@ static int setup_dahdi_int(int reload, struct dahdi_chan_conf *base_conf, struct
ast_mutex_unlock(&iflock);
ast_config_destroy(cfg);
if (ucfg) {
- ast_config_destroy(cfg);
+ ast_config_destroy(ucfg);
}
return res;
}