]> 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:34 +0000 (11:05 -0500)
commitf821e8107180e7c49c00c16ae8f998e12b51e79a
treef9e634b91d28246406faae5ad3adcd946a1cbe58
parent6e75e2565d35ef8f46c6f67de41097374f987584
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