[asterisk-bugs] [JIRA] (ASTERISK-30429) res_sorcery_memory_cache: Memory leak when calling sorcery_memory_cache_open
Joshua C. Colp (JIRA)
noreply at issues.asterisk.org
Tue Feb 21 08:56:03 CST 2023
[ https://issues.asterisk.org/jira/browse/ASTERISK-30429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua C. Colp updated ASTERISK-30429:
--------------------------------------
Status: Open (was: Triage)
> res_sorcery_memory_cache: Memory leak when calling sorcery_memory_cache_open
> ----------------------------------------------------------------------------
>
> Key: ASTERISK-30429
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-30429
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_sorcery_memory_cache
> Affects Versions: 18.10.1
> Reporter: zheng
>
> Valgrind shows me memmory leak here:
> ==25781== 50 bytes in 1 blocks are definitely lost in loss record 4,104 of 12,520
> ==25781== at 0x4C36091: malloc (vg_replace_malloc.c:393)
> ==25781== by 0x811780D: strdup (in /usr/lib64/libc-2.28.so)
> ==25781== by 0x4641EB: __ast_repl_strdup (astmm.c:1570)
> ==25781== by 0x46453B: __ast_strdup (astmm.c:1657)
> ==25781== by 0x233A020D: sorcery_memory_cache_open (res_sorcery_memory_cache.c:1510)
> ==25781== by 0x5A1EF7: __ast_sorcery_object_type_insert_wizard (sorcery.c:944)
> ==25781== by 0x5A25A1: __ast_sorcery_insert_wizard_mapping (sorcery.c:993)
> ==25781== by 0x5A25F3: __ast_sorcery_apply_wizard_mapping (sorcery.c:1003)
> ==25781== by 0x5A27B4: __ast_sorcery_apply_config (sorcery.c:1042)
> ==25781== by 0x3173CF4B: load_module (res_pjsip_endpoint_identifier_ip.c:896)
> ==25781== by 0x52301D: start_resource (loader.c:1713)
> ==25781== by 0x5239CD: start_resource_attempt (loader.c:1889)
> solution:
> char *options = ast_strdupa(data), *option;
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list