summaryrefslogtreecommitdiff
path: root/res/res_sorcery_memory_cache.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-10-01 14:30:06 -0500
committerRichard Mudgett <rmudgett@digium.com>2015-10-01 17:25:37 -0500
commitdfeb513e85d13550d81b40df5e95333c1ad5c61c (patch)
tree454ef62d8b3087c20bab40e03cc8b4553a62b335 /res/res_sorcery_memory_cache.c
parentced0a2d71b690f24026392bcfbbe4c36eb8d4dff (diff)
res_sorcery_memory_cache.c: Replace inline code with function.
Make sorcery_memory_cache_close() call remove_all_from_cache() instead of partially inlining it. ASTERISK-25441 Change-Id: I1aa6cb425b1a4307096f3f914d17af8ec179a74c
Diffstat (limited to 'res/res_sorcery_memory_cache.c')
-rw-r--r--res/res_sorcery_memory_cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c
index bc385b4ae..7c7d5708e 100644
--- a/res/res_sorcery_memory_cache.c
+++ b/res/res_sorcery_memory_cache.c
@@ -1061,9 +1061,7 @@ static void sorcery_memory_cache_close(void *data)
* a prolonged period of time.
*/
ao2_wrlock(cache->objects);
- ao2_callback(cache->objects, OBJ_UNLINK | OBJ_NOLOCK | OBJ_NODATA | OBJ_MULTIPLE,
- NULL, NULL);
- AST_SCHED_DEL_UNREF(sched, cache->expire_id, ao2_ref(cache, -1));
+ remove_all_from_cache(cache);
ao2_unlock(cache->objects);
}