From 05dbd8bd05cc55fea43a723b96564efc1c2cc73b Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Mon, 7 Oct 2019 19:57:46 +0400 Subject: [PATCH] [mod_distributor] Fix leak of xml object when no lists in config. --- src/mod/applications/mod_distributor/mod_distributor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/applications/mod_distributor/mod_distributor.c b/src/mod/applications/mod_distributor/mod_distributor.c index cbdcc987ed..a653514f89 100644 --- a/src/mod/applications/mod_distributor/mod_distributor.c +++ b/src/mod/applications/mod_distributor/mod_distributor.c @@ -128,6 +128,7 @@ static int load_config(int reloading) if (!(lists = switch_xml_child(cfg, "lists"))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't find any lists!\n"); + switch_xml_free(xml); return status; }