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

This commit is contained in:
Andrey Volk 2019-10-07 19:57:46 +04:00
parent 4d2f3fc5ec
commit 05dbd8bd05
1 changed files with 1 additions and 0 deletions

View 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;
}