]> 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:29:48 +0000 (11:29 -0500)
commite818841badcf2d8fddd6b9b5b28efec99668a3e0
treee7c13825765d11fa9864eefebb52dbadf579999a
parent75da335ac435925d31b7aaf624cc02c642d16577
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