mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
[mod_distributor] Fix leak of xml object when no lists in config.
This commit is contained in:
parent
4d2f3fc5ec
commit
05dbd8bd05
@ -128,6 +128,7 @@ static int load_config(int reloading)
|
|||||||
|
|
||||||
if (!(lists = switch_xml_child(cfg, "lists"))) {
|
if (!(lists = switch_xml_child(cfg, "lists"))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't find any lists!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't find any lists!\n");
|
||||||
|
switch_xml_free(xml);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user