MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / safeFree

Function safeFree

plugin/regionPlugin/regionPlugin.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template <typename T>
30void safeFree(T* ptr)
31{
32 if (ptr)
33 {
34 free(ptr);
35 ptr = nullptr;
36 }
37}
38
39template <typename T>
40void allocateChunk(T*& ptr, int32_t count)

Callers 1

operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected