[asterisk-bugs] [JIRA] (ASTERISK-28904) RTP ICE leaks the memory
sungtae kim (JIRA)
noreply at issues.asterisk.org
Mon May 18 11:40:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sungtae kim updated ASTERISK-28904:
-----------------------------------
Description:
rtp_add_candidates_to_ice() function leaks the memory.
{noformat}
==4869== 1,424,304 bytes in 1,099 blocks are definitely lost in loss record 13,277 of 13,281
==4869== at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==4869== by 0x8217BBC: getifaddrs_internal (ifaddrs.c:411)
==4869== by 0x821871F: getifaddrs (ifaddrs.c:831)
==4869== by 0x1F66EA55: rtp_add_candidates_to_ice (res_rtp_asterisk.c:3485)
==4869== by 0x1F66F640: ice_create (res_rtp_asterisk.c:3733)
==4869== by 0x1F66FAFC: rtp_allocate_transport (res_rtp_asterisk.c:3815)
==4869== by 0x1F6700A5: ast_rtp_new (res_rtp_asterisk.c:3945)
==4869== by 0x27203D: ast_rtp_instance_new (rtp_engine.c:535)
==4869== by 0x36430AEF: create_rtp (res_pjsip_sdp_rtp.c:271)
==4869== by 0x364353DB: create_outgoing_sdp_stream (res_pjsip_sdp_rtp.c:1645)
==4869== by 0x1F04ED78: add_sdp_streams (res_pjsip_session.c:4102)
==4869== by 0x1F04F3E9: create_local_sdp (res_pjsip_session.c:4256)
{noformat}
was:
rtp_add_candidates_to_ice() function leaks the memory.
{noformat}
==4869== 5,831,920 bytes in 1,345 blocks are possibly lost in loss record 13,281 of 13,281
==4869== at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==4869== by 0x1743AA: __ast_repl_calloc (astmm.c:1569)
==4869== by 0x1745D9: __ast_calloc (astmm.c:1639)
==4869== by 0x175FC9: internal_ao2_alloc (astobj2.c:714)
==4869== by 0x17625D: __ao2_alloc (astobj2.c:768)
==4869== by 0x2AEE6F: ast_sorcery_generic_alloc (sorcery.c:1727)
==4869== by 0x1A92CA: bucket_file_alloc (bucket.c:643)
==4869== by 0x2AEF7A: ast_sorcery_alloc (sorcery.c:1746)
==4869== by 0x1A9581: ast_bucket_file_alloc (bucket.c:706)
==4869== by 0x23774B: media_cache_item_populate_from_astdb (media_cache.c:412)
==4869== by 0x237A06: media_cache_populate_from_astdb (media_cache.c:466)
==4869== by 0x2383D9: ast_media_cache_init (media_cache.c:701)
{noformat}
> RTP ICE leaks the memory
> ------------------------
>
> Key: ASTERISK-28904
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28904
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_rtp_asterisk
> Affects Versions: 13.33.0, 16.10.0, 17.4.0
> Reporter: sungtae kim
> Assignee: sungtae kim
> Severity: Minor
>
> rtp_add_candidates_to_ice() function leaks the memory.
> {noformat}
> ==4869== 1,424,304 bytes in 1,099 blocks are definitely lost in loss record 13,277 of 13,281
> ==4869== at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
> ==4869== by 0x8217BBC: getifaddrs_internal (ifaddrs.c:411)
> ==4869== by 0x821871F: getifaddrs (ifaddrs.c:831)
> ==4869== by 0x1F66EA55: rtp_add_candidates_to_ice (res_rtp_asterisk.c:3485)
> ==4869== by 0x1F66F640: ice_create (res_rtp_asterisk.c:3733)
> ==4869== by 0x1F66FAFC: rtp_allocate_transport (res_rtp_asterisk.c:3815)
> ==4869== by 0x1F6700A5: ast_rtp_new (res_rtp_asterisk.c:3945)
> ==4869== by 0x27203D: ast_rtp_instance_new (rtp_engine.c:535)
> ==4869== by 0x36430AEF: create_rtp (res_pjsip_sdp_rtp.c:271)
> ==4869== by 0x364353DB: create_outgoing_sdp_stream (res_pjsip_sdp_rtp.c:1645)
> ==4869== by 0x1F04ED78: add_sdp_streams (res_pjsip_session.c:4102)
> ==4869== by 0x1F04F3E9: create_local_sdp (res_pjsip_session.c:4256)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list