From 05ffea0bdb1c73518e116ac6bac1df43446f7158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Thu, 8 Feb 2024 16:39:39 +0100 Subject: [PATCH] use the correct free-function in cache deallocation on error in waitoncompletion --- offloading-cacher/cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offloading-cacher/cache.hpp b/offloading-cacher/cache.hpp index b8d31e3..5ac1b42 100755 --- a/offloading-cacher/cache.hpp +++ b/offloading-cacher/cache.hpp @@ -774,7 +774,7 @@ inline void dsacache::CacheData::WaitOnCompletion() { if (error) { cache_->store(src_); - numa_free(*incomplete_cache_, size_); + memory_free_function_(*incomplete_cache_, size_); delete_ = false; *incomplete_cache_ = nullptr; }