From: Tzafrir Cohen Date: Thu, 6 May 2010 07:27:31 +0000 (+0000) Subject: When failing to configure, don't destroy 'cfg' twice X-Git-Tag: 11.0.0-beta1~3071 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b2e51b1ed141550d4376fd2cfa16b144da21bcf;p=thirdparty%2Fasterisk.git 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/trunk@261451 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 3c48be7a30..601c6efd18 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; }