From: PeterHolik Date: Tue, 16 Jan 2024 07:42:05 +0000 (+0100) Subject: chan_rtp.c: Change MulticastRTP nameing to avoid memory leak X-Git-Tag: 21.2.0-rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a999b6706f08d551b9c63b5d4f181e8ece5cce1;p=thirdparty%2Fasterisk.git chan_rtp.c: Change MulticastRTP nameing to avoid memory leak Fixes: asterisk#536 (cherry picked from commit 6fe045fd646cc2283b19114756fe31b545cdc0b6) --- diff --git a/channels/chan_rtp.c b/channels/chan_rtp.c index 5d2c282ad3..d6342c47c2 100644 --- a/channels/chan_rtp.c +++ b/channels/chan_rtp.c @@ -211,7 +211,7 @@ static struct ast_channel *multicast_rtp_request(const char *type, struct ast_fo } chan = ast_channel_alloc(1, AST_STATE_DOWN, "", "", "", "", "", assignedids, - requestor, 0, "MulticastRTP/%p", instance); + requestor, 0, "MulticastRTP/%s-%p", args.destination, instance); if (!chan) { ast_rtp_instance_destroy(instance); goto failure;