| 151 | } |
| 152 | |
| 153 | void Allocator::nativeFree(void *ptr) { |
| 154 | AF_TRACE("nativeFree: {: >8} {}", " ", ptr); |
| 155 | // Make sure this pointer is not being used on the queue before freeing the |
| 156 | // memory. |
| 157 | getQueue().sync(); |
| 158 | free(ptr); // NOLINT(hicpp-no-malloc) |
| 159 | } |
| 160 | } // namespace cpu |
| 161 | } // namespace arrayfire |
no test coverage detected