]> 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:05:47 +0000 (11:05 -0500)
commitfb29778ae40862ec4a8fdf9056b23a160c353927
tree6a38a9320fd12d84b7be86f1e54eeae4561eccca
parentce7641c8e887300a2cf414a7acb8488bcb934525
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