Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
29
template <typename T>
30
void safeFree(T* ptr)
31
{
32
if (ptr)
33
{
34
free(ptr);
35
ptr = nullptr;
36
}
37
}
38
39
template <typename T>
40
void allocateChunk(T*& ptr, int32_t count)
Callers
1
operator()
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected