MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / ~HostDnTen

Method ~HostDnTen

XM/include/Utils/memory.h:262–272  ·  view source on GitHub ↗

Free allocated memory

Source from the content-addressed store, hash-verified

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
275template <typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected