dect
/
asterisk
Archived
13
0
Fork 0

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:
tzafrir 2010-05-06 07:27:31 +00:00
parent 88c9dfe3a5
commit 71b68cced1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}