Fix pcache.c compilation errors - replace he->pmem_free with pmem_free

This commit is contained in:
Levi Neely 2026-03-08 19:13:42 +01:00
parent bc36713350
commit 4fb8078978
1 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ static void cache_timer(psync_timer_t timer, void *ptr) {
pthread_mutex_lock(&cachelocks[hash_to_lock(he->hash)]);
psync_list_del(&he->list);
pthread_mutex_unlock(&cachelocks[hash_to_lock(he->hash)]);
he->pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he);
ptimer_stop(timer);
}
@ -212,7 +212,7 @@ restart:
continue;
psync_list_del(&he->list);
pthread_mutex_unlock(&cachelocks[hash_to_lock(h)]);
he->pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he);
goto restart;
}
@ -229,7 +229,7 @@ void pcache_clean() {
he = psync_list_element(l1, cache_entry_t, list);
if (!ptimer_stop(he->timer)) {
psync_list_del(l1);
he->pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he);
}
}
@ -256,7 +256,7 @@ void pcache_clean_oneof(const char **prefixes, size_t cnt) {
continue;
if (!ptimer_stop(he->timer)) {
psync_list_del(l1);
he->pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he->value);
pmem_free(PMEM_SUBSYS_OTHER, he);
}
}