[mod_distributor] Fix leak of xml object when no lists in config.

This commit is contained in:
Andrey Volk committed 2019-12-31 00:41:19 +04:00
1 parent 4d2f3fc5ec
commit 05dbd8bd05
1 file changed
+1
@@ -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;
}