]> 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)
committerMohit Dhiman <mohitdhiman@drishti-soft.com>
Fri, 11 Jan 2019 14:01:57 +0000 (09:01 -0500)
commit4b24da607e695897f54f4b21208885fae7ac9158
tree10f27650e1490d7318fd1610688de42fe07ac83d
parent701cd2ee5849af87bb2f5bc45ce6c5bf3391e902
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