Fix a typo which caused a double free in chan_zap. This was discovered
[asterisk/asterisk.git] / channels / chan_zap.c
index 01e7843..8cbde4b 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;
        }