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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@261452
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
ast_mutex_unlock(&iflock);
ast_config_destroy(cfg);
if (ucfg) {
- ast_config_destroy(cfg);
+ ast_config_destroy(ucfg);
}
return res;
}