summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-03-18 23:32:58 +0000
committerMark Michelson <mmichelson@digium.com>2008-03-18 23:32:58 +0000
commit37fcf0e0fe10dc83087c3118646dbef5c43d6fe7 (patch)
treec4a99c92816e03cac6a9e77d502a8c79e42c3143
parent58fa8e6e9e0cd0c30c9a6c8da508d71daed3c31f (diff)
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
-rw-r--r--channels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 01e7843dc..8cbde4b4a 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -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;
}