Files
asterisk/apps
Kevin Harwell e96f744816 app_mixmonitor: cleanup datastore when monitor thread fails to launch
launch_monitor_thread is responsible for creating and initializing
the mixmonitor, and dependent data structures. There was one off
nominal path after the datastore gets created that triggers when
the channel being monitored is hung up prior to monitor starting
itself.

If this happened the monitor thread would not "launch", and the
mixmonitor object and associated objects are freed, including the
underlying datastore data object. However, the datastore itself was
not removed from the channel, so when the channel eventually gets
destroyed it tries to access the previously freed datastore data
and crashes.

This patch removes and frees datastore object itself from the channel
before freeing the mixmonitor object thus ensuring the channel does
not call it when destroyed.

ASTERISK-28947 #close

Change-Id: Id4f9e958956d62473ed5ff06c98ae3436e839ff8
2021-01-06 10:52:14 -06:00
..
2019-05-10 10:17:27 -06:00
2019-11-19 09:58:08 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2018-05-11 09:48:58 -04:00
2020-06-10 13:56:45 -05:00
2018-05-11 09:48:58 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2018-05-11 09:48:58 -04:00