]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a typo which caused a double free in chan_zap. This was discovered
authorMark Michelson <mmichelson@digium.com>
Tue, 18 Mar 2008 23:32:58 +0000 (23:32 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 18 Mar 2008 23:32:58 +0000 (23:32 +0000)
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

channels/chan_zap.c

index 01e7843dc499e15e979d5b593a167e9534cb0903..8cbde4b4a95532ad31188c0eaaac37fdbfe1f457 100644 (file)
@@ -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;
        }