]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_distributor] Fix leak of xml object when no lists in config.
authorAndrey Volk <andywolk@gmail.com>
Mon, 7 Oct 2019 15:57:46 +0000 (19:57 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 30 Dec 2019 20:41:19 +0000 (00:41 +0400)
src/mod/applications/mod_distributor/mod_distributor.c

index cbdcc987ed59dada7245573efff58826d2ab4069..a653514f8980aab5f921a8a302ae8020d1ed5e02 100644 (file)
@@ -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;
        }