]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis/endpoint: Fix memory leak of channel_ids in ast_endpoint structure.
authormohitdhiman <mohitdhiman@drishti-soft.com>
Mon, 7 Jan 2019 18:04:43 +0000 (23:34 +0530)
committermohitdhiman <mohitdhiman@drishti-soft.com>
Fri, 11 Jan 2019 13:53:50 +0000 (19:23 +0530)
commit84a7b4d356212f06f6c8d386f4ee9d184b427ba8
tree13a02562a56a39eb4731bb973493ca534af5345c
parentd309f1d9f786f35a9c9eab736f81db96f4856292
stasis/endpoint: Fix memory leak of channel_ids in ast_endpoint structure.

During Bridging of two channels if masquerade operation is performed on a
channel (clone channel) which was created with endpoint details
(ast_channel_alloc_with_endpoint()) and the original channel which is created
without endpoint details (ast_channel_alloc()) then both the channels must
exchange their endpoint details or else after masquerade when clone channel
is being destroyed the endpoint cleanup callbacks will be destroyed too and
after call completion unique_id of original channel will still be there in
ast_endpoint structure's channel_ids container.

ASTERISK-28197

Change-Id: Ied0451f378a3f2a36acc8c0984959a69895efa17
include/asterisk/channel.h
main/channel.c
main/channel_internal_api.c