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
changes/59/1359/1
Richard Mudgett 10 years ago
parent 6554a3b25e
commit 9c1ca287a4

@ -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);
}

Loading…
Cancel
Save