From: Andrey Volk Date: Mon, 7 Oct 2019 15:57:46 +0000 (+0400) Subject: [mod_distributor] Fix leak of xml object when no lists in config. X-Git-Tag: v1.10.2^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05dbd8bd05cc55fea43a723b96564efc1c2cc73b;p=thirdparty%2Ffreeswitch.git [mod_distributor] Fix leak of xml object when no lists in config. --- 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; }