Free
When this API is used to destroy the memory, ensure that the memory to be destroyed is not manually destroyed by the free function. Otherwise, double free may occur.
Function Usage
This function is used to free the specified memory.
Prototype
static APP_ERROR Free(MemoryData& data);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
data |
Input |
Memory data to be freed |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: MemoryHelper