]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache.c: Fix memory leak
authorzhengsh <zhengsh@ti-net.com.cn>
Tue, 2 May 2023 19:12:38 +0000 (03:12 +0800)
committerAsterisk Development Team <asteriskteam@digium.com>
Mon, 10 Jul 2023 11:49:47 +0000 (11:49 +0000)
commit2d1e5f81eeb84979bcdf9a515767fdac39413baa
treeee62ba4ba42edff1de4216e555f87769957110e1
parent0e4a9d7251664753f1714b66903dde3fd663a65a
res_sorcery_memory_cache.c: Fix memory leak

Replace the original call to ast_strdup with a call to ast_strdupa to fix the leak issue.

Resolves: #55
ASTERISK-30429

(cherry picked from commit 8abb29406309c084a904cfd07bd3faac25b1709e)
res/res_sorcery_memory_cache.c