Free allocated memory
| 260 | |
| 261 | // Free allocated memory |
| 262 | ~HostDnTen() { |
| 263 | if (this->vals != nullptr) { |
| 264 | free(this->vals); |
| 265 | this->vals = nullptr; |
| 266 | } |
| 267 | if (dimensions != nullptr) { |
| 268 | free(dimensions); // Don't forget to free dimensions if allocated |
| 269 | dimensions = nullptr; |
| 270 | } |
| 271 | // std::cout << "HostDnTen destructor called!" << std::endl; |
| 272 | } |
| 273 | }; |
| 274 | |
| 275 | template <typename T> |
nothing calls this directly
no outgoing calls
no test coverage detected