]> 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:06:05 +0000 (11:06 -0500)
commita4caaef64c81eaa3b7e8e78ac491d88da61a74e2
treef9bf5a92d0dc0bf944ee6dc0867818b1aba181f5
parente79a3b428adecec7bb1222d7f22664493cc3e498
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