mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
chan_rtp.c: Change MulticastRTP nameing to avoid memory leak
Fixes: asterisk#536
This commit is contained in:
@@ -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,
|
chan = ast_channel_alloc(1, AST_STATE_DOWN, "", "", "", "", "", assignedids,
|
||||||
requestor, 0, "MulticastRTP/%p", instance);
|
requestor, 0, "MulticastRTP/%s-%p", args.destination, instance);
|
||||||
if (!chan) {
|
if (!chan) {
|
||||||
ast_rtp_instance_destroy(instance);
|
ast_rtp_instance_destroy(instance);
|
||||||
goto failure;
|
goto failure;
|
||||||
|
Reference in New Issue
Block a user