[mod_local_stream] Xml object is leaked on reload when cannot stop local_stream beeing in use.
This commit is contained in:
parent
8442218df1
commit
e4f95f7069
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue