diff options
author | Richard Mudgett <rmudgett@digium.com> | 2015-10-01 14:30:06 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2015-10-01 17:28:24 -0500 |
commit | 9c1ca287a485f57cfd1d7c0c9b3d262c7fb222aa (patch) | |
tree | 280f2090e80ae3fc8773e3e7bd3f90967bb455c7 /res/res_sorcery_memory_cache.c | |
parent | 6554a3b25e7dbfd50d34bda244aa08ce37187707 (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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c index 53fa3b963..fa142fc88 100644 --- a/res/res_sorcery_memory_cache.c +++ b/res/res_sorcery_memory_cache.c @@ -1063,9 +1063,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); } |