Programming Guides › Programming Guide for C › Guidance for the Agent API in C › Memory Deallocation
You must explicitly deallocate any memory that you allocate for your custom agent. To release the response attributes in the Sm_AgentApi_Attribute_t structure, call Sm_AgentApi_FreeAttributes().
More Information:
Sm_AgentApi_FreeAttributes()