Browse Source

use the correct free-function in cache deallocation on error in waitoncompletion

master
Constantin Fürst 11 months ago
parent
commit
05ffea0bdb
  1. 2
      offloading-cacher/cache.hpp

2
offloading-cacher/cache.hpp

@ -774,7 +774,7 @@ inline void dsacache::CacheData::WaitOnCompletion() {
if (error) { if (error) {
cache_->store(src_); cache_->store(src_);
numa_free(*incomplete_cache_, size_);
memory_free_function_(*incomplete_cache_, size_);
delete_ = false; delete_ = false;
*incomplete_cache_ = nullptr; *incomplete_cache_ = nullptr;
} }

Loading…
Cancel
Save