eSNMP API Routines
free_oid
free_oid
Frees the OID structure’s buffer. This routine does not deallocate the OID
structure itself; it deallocates the elements buffer attached to the structure.
Format
void free_oid ( oid *oid );
Description
This routine frees the buffer pointed to by the OID->elements field and zeros the
field and the NELEM structure.
Example
include <esnmp.h>
OID oid;
:
: assume oid was assigned a value (perhaps with clone_oid()
: and we are now finished with it.
:
free_oid(&oid);
5–50 eSNMP API Routines