MxbsFree

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.

You are advised to use MxbsFree preferentially because Free is the same as a system function name.

Prototype

static APP_ERROR MxbsFree(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.