[mod_local_stream] Xml object is leaked on reload when cannot stop local_stream beeing in use.

This commit is contained in:
Andrey Volk 2019-10-07 23:05:44 +04:00
parent 8442218df1
commit e4f95f7069
1 changed files with 4 additions and 0 deletions

View File

@ -764,6 +764,10 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "local_stream://%s partially reloaded.\n",source->name);
source->part_reload = 0;
source->full_reload = 0;
if (xml) {
switch_xml_free(xml);
}
}
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "local_stream://%s fully reloaded.\n",source->name);