Function: destroy_config

C Prototype

aclError aclprofDestroyConfig(const aclprofConfig *profilerConfig)

Python Function

ret = acl.prof.destroy_config(profiler_config)

Function Usage

Destroys data of the aclprofConfig type created by the acl.prof.create_config call.

Input Description

profiler_config: pointer address of the aclprofConfig type to be destroyed.

Return Value

ret: int, error code.

Restrictions

  • Use this API together with the acl.prof.create_config API. Call acl.prof.create_config first and then aclprofDestroyConfig.
  • If the same aclprofConfig pointer repeatedly calls the acl.prof.destroy_config API, an error indicating that the memory is freed repeatedly is reported.