Fix a typo which caused a double free in chan_zap. This was discovered

by Juggie while attempting to load chan_zap. Apparently this would happen
if an error were encountered while trying to process zapata.conf.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Mark Michelson 17 years ago
parent 58fa8e6e9e
commit 37fcf0e0fe

@ -14105,7 +14105,7 @@ static int setup_zap(int reload)
ast_mutex_unlock(&iflock);
ast_config_destroy(cfg);
if (ucfg) {
ast_config_destroy(cfg);
ast_config_destroy(ucfg);
}
return res;
}

Loading…
Cancel
Save