mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
[mod_distributor] Fix leak of xml object when no lists in config.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user