diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-18 23:32:58 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-18 23:32:58 +0000 |
commit | 75163e5c9fce718b266b54d134962c3fbc023597 (patch) | |
tree | c4a99c92816e03cac6a9e77d502a8c79e42c3143 /channels/chan_zap.c | |
parent | 856338f16bab9f663ab9c5885316010ff4117faa (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: http://svn.digium.com/svn/asterisk/trunk@109802 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 2 |
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; } |