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) {
cache_->store(src_);
numa_free(*incomplete_cache_, size_);
memory_free_function_(*incomplete_cache_, size_);
delete_ = false;
*incomplete_cache_ = nullptr;
}

Loading…
Cancel
Save