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
This commit is contained in:
parent
88c9dfe3a5
commit
71b68cced1
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue