We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc279d1 commit 8770108Copy full SHA for 8770108
src/ipc_cache.c
@@ -144,6 +144,8 @@ umfIpcOpenedCacheCreate(ipc_opened_cache_eviction_cb_t eviction_cb) {
144
145
void umfIpcOpenedCacheDestroy(ipc_opened_cache_handle_t cache) {
146
ipc_opened_cache_entry_t *entry, *tmp;
147
+ utils_mutex_lock(&(cache->global->cache_lock));
148
+
149
HASH_ITER(hh, cache->hash_table, entry, tmp) {
150
DL_DELETE(cache->global->lru_list, entry);
151
HASH_DEL(cache->hash_table, entry);
@@ -154,6 +156,7 @@ void umfIpcOpenedCacheDestroy(ipc_opened_cache_handle_t cache) {
154
156
}
155
157
HASH_CLEAR(hh, cache->hash_table);
158
159
+ utils_mutex_unlock(&(cache->global->cache_lock));
160
umf_ba_global_free(cache);
161
162
0 commit comments