]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache: stale item update leak
authorKevin Harwell <kharwell@digium.com>
Mon, 23 Sep 2019 16:01:36 +0000 (11:01 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 23 Sep 2019 16:30:04 +0000 (11:30 -0500)
commit6b072ab08cb067b5ecba32b94a541e2f827a2b78
treee7c9eef00e6cbbecba37dd9f52dda96c85e634a1
parentdeb45228c817e6db71f75d7af65ffe1f91e3e9fb
res_sorcery_memory_cache: stale item update leak

When a stale item was being updated the object was being retrieved, but its
reference was not being decremented after the update. This patch makes it so
the object is now appropriately de-referenced.

ASTERISK-28523

Change-Id: I9d8173d3a0416a242f4eba92fa0853279c500ec7
res/res_sorcery_memory_cache.c